Removing unused code
This commit is contained in:
parent
4d5af79eaa
commit
a5762b7dbb
2 changed files with 0 additions and 21 deletions
|
|
@ -1,6 +1,5 @@
|
|||
package com.coder.client;
|
||||
|
||||
import java.util.Scanner;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
|
|
@ -16,7 +15,6 @@ public class CoderClient extends Thread{
|
|||
private int port;
|
||||
private Session session;
|
||||
private ClientWindow window;
|
||||
//private Scanner userInput = new Scanner(System.in);
|
||||
|
||||
public CoderClient(String url, int port) {
|
||||
this.url = url;
|
||||
|
|
@ -44,12 +42,6 @@ public class CoderClient extends Thread{
|
|||
}
|
||||
username = loginDialog.getUsername();
|
||||
String password = loginDialog.getPassword();
|
||||
/*
|
||||
System.out.println("username:");
|
||||
String username = userInput.next();
|
||||
System.out.println("password:");
|
||||
String password = userInput.next();
|
||||
*/
|
||||
boolean authenticated = session.authenticate(username, password);
|
||||
if(!authenticated){
|
||||
System.out.println("Authentication failed");
|
||||
|
|
|
|||
|
|
@ -1,20 +1,7 @@
|
|||
package com.coder.client;
|
||||
|
||||
import com.coder.server.message.AuthenticationChallengeMsg;
|
||||
import com.coder.server.message.AuthenticationReqMsg;
|
||||
import com.coder.server.message.AuthenticationRspMsg;
|
||||
import com.coder.server.message.AuthenticationSuccessMsg;
|
||||
|
||||
public interface CoderMessageReceivedListener {
|
||||
|
||||
void authenticationChallengeMsgReceived(AuthenticationChallengeMsg authenticationChallenge);
|
||||
|
||||
void authenticationReqMsgReceived(AuthenticationReqMsg authenticationReq);
|
||||
|
||||
void authenticationRspMsgReceived(AuthenticationRspMsg authenticationRsp);
|
||||
|
||||
void authenticationSuccessMsgReceived(AuthenticationSuccessMsg authenticationSuccess);
|
||||
|
||||
void msgReceived(Class msgClass, Object authenticationChallenge);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue