Remove unused ThingManager constructor.
This fixes a warning about exposing ItemStackThingParser outside of its visibility scope, but really it's just a good little cleanup step, since the constructor in question is never used for anything. We might want to eventually expose the ItemStackThingParser and use it in more places in the code base, but in that case, and in that case it would probably make sense to re-introduce the constructor, but I'm calling YAGNI on this in order to nuke a warning.
This commit is contained in:
@@ -10,21 +10,17 @@ public class ThingManager implements ThingParser {
|
|||||||
private final List<ThingParser> parsers;
|
private final List<ThingParser> parsers;
|
||||||
private final ItemStackThingParser items;
|
private final ItemStackThingParser items;
|
||||||
|
|
||||||
public ThingManager(MobArena plugin, ItemStackThingParser parser) {
|
public ThingManager(MobArena plugin) {
|
||||||
parsers = new ArrayList<>();
|
parsers = new ArrayList<>();
|
||||||
parsers.add(new CommandThingParser());
|
parsers.add(new CommandThingParser());
|
||||||
parsers.add(new MoneyThingParser(plugin));
|
parsers.add(new MoneyThingParser(plugin));
|
||||||
parsers.add(new PermissionThingParser(plugin));
|
parsers.add(new PermissionThingParser(plugin));
|
||||||
parsers.add(new PotionEffectThingParser());
|
parsers.add(new PotionEffectThingParser());
|
||||||
parsers.add(new InventoryThingParser(plugin.getServer()));
|
parsers.add(new InventoryThingParser(plugin.getServer()));
|
||||||
items = parser;
|
items = new ItemStackThingParser();
|
||||||
items.register(new SavedItemParser(plugin));
|
items.register(new SavedItemParser(plugin));
|
||||||
}
|
}
|
||||||
|
|
||||||
public ThingManager(MobArena plugin) {
|
|
||||||
this(plugin, new ItemStackThingParser());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register a new thing parser in the manager.
|
* Register a new thing parser in the manager.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user