From 27c4fcc5638de974bc6e5d174a9416457d90969c Mon Sep 17 00:00:00 2001 From: js Date: Fri, 10 Apr 2020 16:19:54 +0200 Subject: [PATCH] fix warning --- src/gui/ClientP2Pgui.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/gui/ClientP2Pgui.java b/src/gui/ClientP2Pgui.java index f31f884..3c1eea1 100644 --- a/src/gui/ClientP2Pgui.java +++ b/src/gui/ClientP2Pgui.java @@ -57,14 +57,6 @@ public class ClientP2Pgui { */ public ClientP2Pgui(String hostnameServer, int portServer, String hostnameTracker, int portTracker, String protocolP2P) { - if (directories == null && loggerServer == null && loggerClient == null) { - directories = new Directories("P2P_JAVA_PROJECT_" + server.getPort()); - directories.createSubdir(logDir); - loggerServer = new Logger(directories.getDataHomeDirectory() + logDir + "server.log", DEBUG); - loggerClient = new Logger(directories.getDataHomeDirectory() + logDir + "client.log", DEBUG); - directories.createSubdir(partsDir); - } - this.hostnameServer = hostnameServer; this.hostnameTracker = hostnameTracker; this.portServer = portServer;