From cb22a55b241714a56f78b9c6ee863f0a37bbf005 Mon Sep 17 00:00:00 2001 From: jeff Date: Thu, 5 Feb 2015 23:53:41 -0500 Subject: start some translation tests --- src/cuchaz/enigma/mapping/Mappings.java | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src') diff --git a/src/cuchaz/enigma/mapping/Mappings.java b/src/cuchaz/enigma/mapping/Mappings.java index cc560a8..92134ed 100644 --- a/src/cuchaz/enigma/mapping/Mappings.java +++ b/src/cuchaz/enigma/mapping/Mappings.java @@ -10,20 +10,15 @@ ******************************************************************************/ package cuchaz.enigma.mapping; -import java.io.IOException; -import java.io.InputStream; -import java.io.ObjectInputStream; import java.io.Serializable; import java.util.ArrayList; import java.util.Collection; import java.util.Map; import java.util.Set; -import java.util.zip.GZIPInputStream; import com.google.common.collect.Maps; import com.google.common.collect.Sets; -import cuchaz.enigma.Util; import cuchaz.enigma.analysis.TranslationIndex; import cuchaz.enigma.mapping.SignatureUpdater.ClassNameUpdater; @@ -50,16 +45,6 @@ public class Mappings implements Serializable { } } - public static Mappings newFromResource(String resource) throws IOException { - InputStream in = null; - try { - in = Mappings.class.getResourceAsStream(resource); - return newFromStream(in); - } finally { - Util.closeQuietly(in); - } - } - public Collection classes() { assert (m_classesByObf.size() >= m_classesByDeobf.size()); return m_classesByObf.values(); @@ -134,14 +119,6 @@ public class Mappings implements Serializable { } } - public static Mappings newFromStream(InputStream in) throws IOException { - try { - return (Mappings)new ObjectInputStream(new GZIPInputStream(in)).readObject(); - } catch (ClassNotFoundException ex) { - throw new Error(ex); - } - } - @Override public String toString() { StringBuilder buf = new StringBuilder(); -- cgit v1.2.3