From ef938304f07a284504ab37a6d99b880eea45b106 Mon Sep 17 00:00:00 2001 From: Brady Date: Wed, 1 Aug 2018 21:48:33 -0700 Subject: [PATCH] Remove unnecessary usage of Reflections --- build.gradle | 1 - src/main/java/baritone/bot/Baritone.java | 9 --------- 2 files changed, 10 deletions(-) diff --git a/build.gradle b/build.gradle index 8c115dd2..e50c77c4 100755 --- a/build.gradle +++ b/build.gradle @@ -48,7 +48,6 @@ repositories { } dependencies { - implementation 'org.reflections:reflections:0.9.11' implementation ('org.spongepowered:mixin:0.7.8-SNAPSHOT') { // Mixin includes a lot of dependencies that are too up-to-date exclude module: 'launchwrapper' diff --git a/src/main/java/baritone/bot/Baritone.java b/src/main/java/baritone/bot/Baritone.java index 70fd0cb4..8ef538aa 100755 --- a/src/main/java/baritone/bot/Baritone.java +++ b/src/main/java/baritone/bot/Baritone.java @@ -1,7 +1,6 @@ package baritone.bot; import baritone.bot.behavior.Behavior; -import org.reflections.Reflections; import java.util.ArrayList; import java.util.List; @@ -44,14 +43,6 @@ public enum Baritone { this.active = true; this.initialized = true; - - new Reflections("baritone.bot.behavior.impl").getSubTypesOf(Behavior.class).forEach(c -> { - try { - behaviors.add(c.newInstance()); - } catch (InstantiationException | IllegalAccessException e) { - e.printStackTrace(); - } - }); } public final boolean isInitialized() {