Browse Source

Unhack.

Change-Id: I6b1d75f62c501d87712e640167cfe8b4786f9298
Reviewed-on: http://gerrit.dmdirc.com/2793
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
tags/0.8rc1
Chris Smith 10 years ago
parent
commit
79961a60d1
1 changed files with 0 additions and 11 deletions
  1. 0
    11
      src/com/dmdirc/ParserFactory.java

+ 0
- 11
src/com/dmdirc/ParserFactory.java View File

@@ -65,17 +65,6 @@ public class ParserFactory {
65 65
      * @since 0.6.3
66 66
      */
67 67
     public Parser getParser(final MyInfo myInfo, final URI address) {
68
-        // TODO: Hacky Hack McHack
69
-        if ("irc-test".equals(address.getScheme())) {
70
-            try {
71
-                return (Parser) Class.forName("com.dmdirc.harness.parser.TestParser")
72
-                        .getConstructor(MyInfo.class, URI.class)
73
-                        .newInstance(myInfo, address);
74
-            } catch (Exception ex) {
75
-                Logger.userError(ErrorLevel.UNKNOWN, "Unable to create parser", ex);
76
-            }
77
-        }
78
-
79 68
         final Object obj = getExportResult(address, "getParser", myInfo, address);
80 69
 
81 70
         if (obj instanceof Parser) {

Loading…
Cancel
Save