Permalink
Browse files

Minimal clean-up.

  • Loading branch information...
1 parent 736e699 commit 2ace107a68828642ddb81001515b3908cb7f52ba @kd35a committed May 10, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −2 ChatServer/src/clientgui/ChatRoomPanel.java
  2. +0 −3 ChatServer/src/server/Server.java
@@ -9,7 +9,6 @@
import message.ChatroomMessage;
public class ChatRoomPanel extends JPanel {
-
private static final long serialVersionUID = 1L;
private JTextArea text;
@@ -33,5 +32,5 @@ private void initGUI() {
public void putMessage(ChatroomMessage m) {
text.append(m.getFrom() + ": " + m.getMsg() + "\n");
}
-
+
}
@@ -3,19 +3,16 @@
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
-import java.util.List;
import java.util.concurrent.ConcurrentHashMap;
import message.Message;
-import message.WelcomeMessage;
import common.Mailbox;
/**
* A Chat server. Is currently run by the main thread, and accepts connections
* from multiple clients.
*/
public class Server {
-
private String serverName; // TODO: USE ME!
private int port;
private Mailbox<Message> messages;

0 comments on commit 2ace107

Please sign in to comment.