[Cherbot-commit] SF.net SVN: cherbot: [14] trunk/src/net/sf/cherbot/CherBot.java
Status: Alpha
Brought to you by:
christianhujer
|
From: <chr...@us...> - 2006-10-28 22:22:29
|
Revision: 14
http://svn.sourceforge.net/cherbot/?rev=14&view=rev
Author: christianhujer
Date: 2006-10-28 15:22:23 -0700 (Sat, 28 Oct 2006)
Log Message:
-----------
Removed some unused code.
Modified Paths:
--------------
trunk/src/net/sf/cherbot/CherBot.java
Modified: trunk/src/net/sf/cherbot/CherBot.java
===================================================================
--- trunk/src/net/sf/cherbot/CherBot.java 2006-10-28 22:19:30 UTC (rev 13)
+++ trunk/src/net/sf/cherbot/CherBot.java 2006-10-28 22:22:23 UTC (rev 14)
@@ -11,14 +11,8 @@
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
-import java.net.Socket;
import java.text.BreakIterator;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
+import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import net.sf.cherbot.Manager.Command;
@@ -194,12 +188,6 @@
public void connect(final String username, final String password, final String server) throws IOException {
this.username = username;
this.password = password;
- socket = new Socket(server, 13327);
- in = socket.getInputStream();
- out = socket.getOutputStream();
- receiveServerVersion();
- sendClientVersion();
- login();
try {
internalManager.load();
} catch (final Exception e) {
@@ -214,8 +202,6 @@
public void run() throws IOException {
try {
while (!stop) {
- dispatch(receivePacket());
- timer();
}
} finally {
try {
@@ -223,9 +209,6 @@
} catch (final Exception e) {
System.err.println(e);
}
- try { in.close(); } catch (final IOException e) { /* ignore */ } finally { in = null; }
- try { out.close(); } catch (final IOException e) { /* ignore */ } finally { out = null; }
- try { socket.close(); } catch (final IOException e) { /* ignore */ } finally { socket = null; }
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|