Browse Source

Remove default port from ProtocolDescription.

If the user doesn't specify a port, the parser should decide what
to do itself. A single default port isn't useful to users of the
parser.
pull/136/head
Chris Smith 7 years ago
parent
commit
966fcf5359

+ 0
- 7
common/src/main/java/com/dmdirc/parser/interfaces/ProtocolDescription.java View File

@@ -32,13 +32,6 @@ import java.net.URI;
32 32
  */
33 33
 public interface ProtocolDescription {
34 34
 
35
-    /**
36
-     * Retrieves the default port to use for this protocol if none is specified.
37
-     *
38
-     * @return This protocol's default port
39
-     */
40
-    int getDefaultPort();
41
-
42 35
     /**
43 36
      * Parses the specified hostmask into an array containing a nickname,
44 37
      * username and hostname, in that order.

+ 0
- 5
irc/src/main/java/com/dmdirc/parser/irc/IRCProtocolDescription.java View File

@@ -33,11 +33,6 @@ import java.net.URI;
33 33
  */
34 34
 public class IRCProtocolDescription implements ProtocolDescription {
35 35
 
36
-    @Override
37
-    public int getDefaultPort() {
38
-        return 6667;
39
-    }
40
-
41 36
     @Override
42 37
     public String[] parseHostmask(final String hostmask) {
43 38
         return IRCClientInfo.parseHostFull(hostmask);

+ 0
- 5
xmpp/src/main/java/com/dmdirc/parser/xmpp/XmppProtocolDescription.java View File

@@ -31,11 +31,6 @@ import java.net.URI;
31 31
  */
32 32
 public class XmppProtocolDescription implements ProtocolDescription {
33 33
 
34
-    @Override
35
-    public int getDefaultPort() {
36
-        return 5222;
37
-    }
38
-
39 34
     @Override
40 35
     public String[] parseHostmask(final String hostmask) {
41 36
         final String[] parts = hostmask.split("/");

Loading…
Cancel
Save