Removed old code

This commit is contained in:
Tristan B. Kildaire 2020-10-30 19:24:05 +02:00
parent e8def91645
commit 30ea770c37
1 changed files with 4 additions and 16 deletions

View File

@ -17,18 +17,13 @@ public final class DClient
*/
private Manager manager;
private Socket socket;
/* Create a queue for normal traffic (request-reply on tag: 0) */
private Queue reqRepQueue;
/* Create a queue for notifications (replies-only on tag: 1) */
/* Create a queue for notifications (replies-only on tag: 1) */
private Queue notificationQueue;
/* TODO: Tristsnable doesn't, unlike my java version, let youn really reuse tags */
/* TODO: Reason is after use they do not get deleted, only later by garbage collector */
/* TODO: To prevent weird stuff from possibly going down, we use unique ones each time */
private long i = 20;
/**
* Constructs a new DClient and connects
* it to the given endpoint Address
@ -47,6 +42,8 @@ public final class DClient
initTristanable(socket);
}
/* TODO: Create a new queue actually for each command (this is for performance) - as we will have server spawn workers */
private void initTristanable(Socket socket)
{
/* Initialize the manager */
@ -449,9 +446,6 @@ public final class DClient
/* TODO: Error handling */
}
/* Set next available tag */
i++;
return members;
}
@ -505,9 +499,6 @@ public final class DClient
/* TODO: Error handling */
}
/* Set next available tag */
i++;
return memberCount;
}
@ -537,9 +528,6 @@ public final class DClient
/* TODO: Error handling */
}
/* Set next available tag */
i++;
return motd;
}