From 6ecf52bedaea22a0e34061eff9dfb5f3d6812ab8 Mon Sep 17 00:00:00 2001
From: Rsl1122 <djrapitops@hotmail.com>
Date: Sun, 14 Oct 2018 15:38:52 +0300
Subject: [PATCH] [Smell] Duplicate provides definition removed

---
 .../plan/modules/proxy/ProxySuperClassBindingModule.java  | 8 ++++++++
 .../proxy/bungee/BungeeSuperClassBindingModule.java       | 8 --------
 .../proxy/velocity/VelocitySuperClassBindingModule.java   | 8 --------
 3 files changed, 8 insertions(+), 16 deletions(-)

diff --git a/Plan/src/main/java/com/djrapitops/plan/modules/proxy/ProxySuperClassBindingModule.java b/Plan/src/main/java/com/djrapitops/plan/modules/proxy/ProxySuperClassBindingModule.java
index 44b171eba..99680672b 100644
--- a/Plan/src/main/java/com/djrapitops/plan/modules/proxy/ProxySuperClassBindingModule.java
+++ b/Plan/src/main/java/com/djrapitops/plan/modules/proxy/ProxySuperClassBindingModule.java
@@ -12,6 +12,8 @@ import com.djrapitops.plan.system.info.InfoSystem;
 import com.djrapitops.plan.system.info.ProxyInfoSystem;
 import com.djrapitops.plan.system.info.connection.ConnectionSystem;
 import com.djrapitops.plan.system.info.connection.ProxyConnectionSystem;
+import com.djrapitops.plan.system.settings.config.ConfigSystem;
+import com.djrapitops.plan.system.settings.config.ProxyConfigSystem;
 import dagger.Module;
 import dagger.Provides;
 
@@ -37,6 +39,12 @@ public class ProxySuperClassBindingModule {
         return proxyDBSystem;
     }
 
+    @Provides
+    @Singleton
+    ConfigSystem provideProxyConfigSystem(ProxyConfigSystem proxyConfigSystem) {
+        return proxyConfigSystem;
+    }
+
     @Provides
     @Singleton
     InfoSystem provideProxyInfoSystem(ProxyInfoSystem proxyInfoSystem) {
diff --git a/Plan/src/main/java/com/djrapitops/plan/modules/proxy/bungee/BungeeSuperClassBindingModule.java b/Plan/src/main/java/com/djrapitops/plan/modules/proxy/bungee/BungeeSuperClassBindingModule.java
index 58b79c0ef..e9078f65b 100644
--- a/Plan/src/main/java/com/djrapitops/plan/modules/proxy/bungee/BungeeSuperClassBindingModule.java
+++ b/Plan/src/main/java/com/djrapitops/plan/modules/proxy/bungee/BungeeSuperClassBindingModule.java
@@ -4,8 +4,6 @@ import com.djrapitops.plan.system.info.server.BungeeServerInfo;
 import com.djrapitops.plan.system.info.server.ServerInfo;
 import com.djrapitops.plan.system.listeners.BungeeListenerSystem;
 import com.djrapitops.plan.system.listeners.ListenerSystem;
-import com.djrapitops.plan.system.settings.config.ConfigSystem;
-import com.djrapitops.plan.system.settings.config.ProxyConfigSystem;
 import com.djrapitops.plan.system.tasks.BungeeTaskSystem;
 import com.djrapitops.plan.system.tasks.TaskSystem;
 import dagger.Module;
@@ -27,12 +25,6 @@ public class BungeeSuperClassBindingModule {
         return bungeeServerInfo;
     }
 
-    @Provides
-    @Singleton
-    ConfigSystem provideBungeeConfigSystem(ProxyConfigSystem proxyConfigSystem) {
-        return proxyConfigSystem;
-    }
-
     @Provides
     @Singleton
     TaskSystem provideBungeeTaskSystem(BungeeTaskSystem bungeeTaskSystem) {
diff --git a/Plan/src/main/java/com/djrapitops/plan/modules/proxy/velocity/VelocitySuperClassBindingModule.java b/Plan/src/main/java/com/djrapitops/plan/modules/proxy/velocity/VelocitySuperClassBindingModule.java
index 58df0f110..4397872a0 100644
--- a/Plan/src/main/java/com/djrapitops/plan/modules/proxy/velocity/VelocitySuperClassBindingModule.java
+++ b/Plan/src/main/java/com/djrapitops/plan/modules/proxy/velocity/VelocitySuperClassBindingModule.java
@@ -4,8 +4,6 @@ import com.djrapitops.plan.system.info.server.ServerInfo;
 import com.djrapitops.plan.system.info.server.VelocityServerInfo;
 import com.djrapitops.plan.system.listeners.ListenerSystem;
 import com.djrapitops.plan.system.listeners.VelocityListenerSystem;
-import com.djrapitops.plan.system.settings.config.ConfigSystem;
-import com.djrapitops.plan.system.settings.config.ProxyConfigSystem;
 import com.djrapitops.plan.system.tasks.TaskSystem;
 import com.djrapitops.plan.system.tasks.VelocityTaskSystem;
 import dagger.Module;
@@ -27,12 +25,6 @@ public class VelocitySuperClassBindingModule {
         return velocityServerInfo;
     }
 
-    @Provides
-    @Singleton
-    ConfigSystem provideVelocityConfigSystem(ProxyConfigSystem proxyConfigSystem) {
-        return proxyConfigSystem;
-    }
-
     @Provides
     @Singleton
     TaskSystem provideVelocityTaskSystem(VelocityTaskSystem velocityTaskSystem) {