From 4f39498ef5e090e27f96425f9eecbc7411066639 Mon Sep 17 00:00:00 2001 From: jglrxavpok Date: Wed, 3 Feb 2021 17:12:20 +0100 Subject: [PATCH] Remove debug code no longer relevant --- .../minestom/server/event/handler/EventHandler.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/main/java/net/minestom/server/event/handler/EventHandler.java b/src/main/java/net/minestom/server/event/handler/EventHandler.java index 37a4acc90..c7454e45b 100644 --- a/src/main/java/net/minestom/server/event/handler/EventHandler.java +++ b/src/main/java/net/minestom/server/event/handler/EventHandler.java @@ -50,16 +50,6 @@ public interface EventHandler { ClassLoader cl = callback.getClass().getClassLoader(); if(cl instanceof MinestomExtensionClassLoader) { return Optional.of(((MinestomExtensionClassLoader) cl).getExtensionName()); - } else if(System.getProperty(ExtensionManager.INDEV_CLASSES_FOLDER) != null) { // in a dev environment, the extension will always be loaded with the root classloader - StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace(); - // 0 -> getStackTrace - // 1 -> getExtensionOwningCallback - // 2 -> add/remove EventCallback - // 3 -> Potentially the extension - if(stackTrace.length >= 4) { - StackTraceElement potentialExtensionCall = stackTrace[3]; - System.out.println(potentialExtensionCall.getClassLoaderName()); - } } return Optional.empty(); }