From 46f703db3465e4ef4c06709ea0bb10412ba67600 Mon Sep 17 00:00:00 2001 From: Konloch Date: Thu, 15 Jul 2021 10:45:35 -0700 Subject: [PATCH] Unnecessary Class Check This check isn't needed anymore, importing through importKnownFile does this already --- .../bytecodeviewer/resources/importing/ImportResource.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/ImportResource.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/ImportResource.java index 80e88eb4..fec670fa 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/ImportResource.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/ImportResource.java @@ -58,11 +58,6 @@ public class ImportResource implements Runnable Import.DIRECTORY.getImporter().open(file); continue; } - - //check for classes - if (fn.endsWith(".class")) - Import.CLASS.getImporter().open(file); - //everything else import as a resource else if(!importKnownFile(file)) Import.FILE.getImporter().open(file);