From 20f9fec6ac04b437605e5444c810104f57db9749 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 15 Oct 2014 21:18:11 +0200 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20start=20a=20command=20reader=20o?= =?utf8?q?n=20stdin/stdout.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/xdcc/main/Main.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/net/pterodactylus/xdcc/main/Main.java b/src/main/java/net/pterodactylus/xdcc/main/Main.java index 381c6a5..5601f05 100644 --- a/src/main/java/net/pterodactylus/xdcc/main/Main.java +++ b/src/main/java/net/pterodactylus/xdcc/main/Main.java @@ -20,8 +20,6 @@ package net.pterodactylus.xdcc.main; import static com.lexicalscope.jewel.cli.CliFactory.parseArguments; import java.io.File; -import java.io.InputStreamReader; -import java.io.OutputStreamWriter; import java.util.Collection; import java.util.HashSet; import java.util.concurrent.CopyOnWriteArraySet; @@ -106,10 +104,6 @@ public class Main { Collection failedDownloads = new CopyOnWriteArraySet<>(); - CommandReader commandReader = new CommandReader(core, new InputStreamReader(System.in, "UTF-8"), new OutputStreamWriter(System.out, "UTF-8"), failedDownloads); - commandReader.start(); - eventBus.register(commandReader); - NetworkAdapter networkAcceptor = new NetworkAdapter(eventBus, (reader, writer) -> new CommandReader(core, reader, writer, failedDownloads), configuration.getTelnetPort()); networkAcceptor.start(); -- 2.7.4