Remove unused field

This commit is contained in:
filoghost 2021-07-30 10:18:01 +02:00
parent 665d8bb367
commit 7e0f23f220
2 changed files with 4 additions and 10 deletions

View File

@ -135,7 +135,7 @@ public class HolographicDisplays extends FCommonsPlugin {
// Enable the APIs // Enable the APIs
HolographicDisplaysAPIProvider.setImplementation( HolographicDisplaysAPIProvider.setImplementation(
new DefaultHolographicDisplaysAPIProvider(apiHologramManager, nmsManager, placeholderRegistry)); new DefaultHolographicDisplaysAPIProvider(apiHologramManager, nmsManager, placeholderRegistry));
enableLegacyAPI(apiHologramManager, nmsManager, placeholderRegistry); enableLegacyAPI(apiHologramManager, placeholderRegistry);
// Register bStats metrics // Register bStats metrics
int pluginID = 3123; int pluginID = 3123;
@ -150,11 +150,8 @@ public class HolographicDisplays extends FCommonsPlugin {
} }
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
private void enableLegacyAPI(APIHologramManager apiHologramManager, NMSManager nmsManager, PlaceholderRegistry placeholderRegistry) { private void enableLegacyAPI(APIHologramManager apiHologramManager, PlaceholderRegistry placeholderRegistry) {
HologramsAPIProvider.setImplementation(new V2HologramsAPIProvider( HologramsAPIProvider.setImplementation(new V2HologramsAPIProvider(apiHologramManager, placeholderRegistry));
apiHologramManager,
nmsManager,
placeholderRegistry));
} }
public void load(boolean deferHologramsCreation, ErrorCollector errorCollector) { public void load(boolean deferHologramsCreation, ErrorCollector errorCollector) {

View File

@ -9,7 +9,6 @@ import com.gmail.filoghost.holographicdisplays.api.Hologram;
import com.gmail.filoghost.holographicdisplays.api.internal.HologramsAPIProvider; import com.gmail.filoghost.holographicdisplays.api.internal.HologramsAPIProvider;
import com.gmail.filoghost.holographicdisplays.api.placeholder.PlaceholderReplacer; import com.gmail.filoghost.holographicdisplays.api.placeholder.PlaceholderReplacer;
import me.filoghost.fcommons.Preconditions; import me.filoghost.fcommons.Preconditions;
import me.filoghost.holographicdisplays.common.nms.NMSManager;
import me.filoghost.holographicdisplays.plugin.hologram.api.APIHologram; import me.filoghost.holographicdisplays.plugin.hologram.api.APIHologram;
import me.filoghost.holographicdisplays.plugin.hologram.api.APIHologramManager; import me.filoghost.holographicdisplays.plugin.hologram.api.APIHologramManager;
import me.filoghost.holographicdisplays.plugin.placeholder.registry.PlaceholderRegistry; import me.filoghost.holographicdisplays.plugin.placeholder.registry.PlaceholderRegistry;
@ -27,12 +26,10 @@ import java.util.List;
public class V2HologramsAPIProvider extends HologramsAPIProvider { public class V2HologramsAPIProvider extends HologramsAPIProvider {
private final APIHologramManager apiHologramManager; private final APIHologramManager apiHologramManager;
private final NMSManager nmsManager;
private final PlaceholderRegistry placeholderRegistry; private final PlaceholderRegistry placeholderRegistry;
public V2HologramsAPIProvider(APIHologramManager apiHologramManager, NMSManager nmsManager, PlaceholderRegistry placeholderRegistry) { public V2HologramsAPIProvider(APIHologramManager apiHologramManager, PlaceholderRegistry placeholderRegistry) {
this.apiHologramManager = apiHologramManager; this.apiHologramManager = apiHologramManager;
this.nmsManager = nmsManager;
this.placeholderRegistry = placeholderRegistry; this.placeholderRegistry = placeholderRegistry;
} }