mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-21 05:50:18 +08:00
[Smell] Duplicate provides definition removed
This commit is contained in:
parent
dd0362599f
commit
6ecf52beda
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user