|
@@ -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) {
|