remove unused BootstrapAddonLoader constructor parameter

This commit is contained in:
dfsek 2021-11-23 20:47:26 -07:00
parent a1306c88c0
commit dcee8b8e8b
2 changed files with 2 additions and 5 deletions

View File

@ -177,7 +177,7 @@ public abstract class AbstractPlatform implements Platform {
platformAddon().ifPresent(addonList::add);
BootstrapAddonLoader bootstrapAddonLoader = new BootstrapAddonLoader(this);
BootstrapAddonLoader bootstrapAddonLoader = new BootstrapAddonLoader();
Path addonsFolder = getDataFolder().toPath().resolve("addons");

View File

@ -41,10 +41,7 @@ import com.dfsek.terra.api.addon.bootstrap.BootstrapBaseAddon;
public class BootstrapAddonLoader implements BootstrapBaseAddon<BootstrapBaseAddon<?>> {
private static final Logger logger = LoggerFactory.getLogger(BootstrapAddonLoader.class);
private static final Version VERSION = Versions.getVersion(1, 0, 0);
private final Platform platform;
public BootstrapAddonLoader(Platform platform) { this.platform = platform; }
public BootstrapAddonLoader() { }
private BootstrapBaseAddon<?> loadAddon(Path addonPath, ClassLoader parent) {
logger.debug("Loading bootstrap addon from JAR {}", addonPath);