From 6032f55ede3c1b550cfd83b2f768926c992d9a98 Mon Sep 17 00:00:00 2001 From: Thog Date: Fri, 12 Aug 2016 19:59:54 +0200 Subject: Remoe JSON directory format support and clean up others things --- src/main/java/cuchaz/enigma/gui/GuiController.java | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/main/java/cuchaz/enigma/gui/GuiController.java') diff --git a/src/main/java/cuchaz/enigma/gui/GuiController.java b/src/main/java/cuchaz/enigma/gui/GuiController.java index d416345..68f7c56 100644 --- a/src/main/java/cuchaz/enigma/gui/GuiController.java +++ b/src/main/java/cuchaz/enigma/gui/GuiController.java @@ -72,14 +72,6 @@ public class GuiController { refreshCurrentClass(); } - public void openJsonMappings(File file) throws IOException { - this.deobfuscator.setMappings(new MappingsJsonReader().read(file)); - this.isDirty = false; - this.gui.setMappingsFile(file); - refreshClasses(); - refreshCurrentClass(); - } - public void saveMappings(File file) throws IOException { Mappings mappings = this.deobfuscator.getMappings(); switch (mappings.getOriginMappingFormat()) @@ -87,9 +79,6 @@ public class GuiController { case SRG_FILE: saveSRGMappings(file); break; - case JSON_DIRECTORY: - saveJsonMappings(file); - break; default: saveEnigmaMappings(file, Mappings.FormatType.ENIGMA_FILE != mappings.getOriginMappingFormat()); break; @@ -97,11 +86,6 @@ public class GuiController { } - public void saveJsonMappings(File file) throws IOException { - new MappingsJsonWriter().write(file, this.deobfuscator.getMappings()); - this.isDirty = false; - } - public void saveEnigmaMappings(File file, boolean isDirectoryFormat) throws IOException { new MappingsEnigmaWriter().write(file, this.deobfuscator.getMappings(), isDirectoryFormat); this.isDirty = false; -- cgit v1.2.3