From 3357979cc9f404e9db809be5be3b5bf89770eda9 Mon Sep 17 00:00:00 2001 From: Skylot Date: Tue, 7 Apr 2015 23:09:38 +0300 Subject: [PATCH] core: remove unused method --- .../java/jadx/core/utils/files/InputFile.java | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/jadx-core/src/main/java/jadx/core/utils/files/InputFile.java b/jadx-core/src/main/java/jadx/core/utils/files/InputFile.java index c42a8520..2bf548ab 100644 --- a/jadx-core/src/main/java/jadx/core/utils/files/InputFile.java +++ b/jadx-core/src/main/java/jadx/core/utils/files/InputFile.java @@ -74,31 +74,6 @@ public class InputFile { } } - public static byte[] loadXMLBuffer(File file) throws IOException { // FIXME: Public.. Please fix - ZipFile zf = new ZipFile(file); - ZipEntry xml = zf.getEntry("AndroidManifest.xml"); - if (xml == null) { - zf.close(); - return null; - } - ByteArrayOutputStream bytesOut = new ByteArrayOutputStream(); - InputStream in = null; - try { - in = zf.getInputStream(xml); - byte[] buffer = new byte[(int) xml.getSize()]; // FIXME: long->int conversion loss - int count; - while ((count = in.read(buffer)) != -1) { - bytesOut.write(buffer, 0, count); - } - } finally { - if (null != in) { - in.close(); - } - zf.close(); - } - return bytesOut.toByteArray(); - } - private static Dex loadFromZip(File file) throws IOException { ZipFile zf = new ZipFile(file); ZipEntry dex = zf.getEntry("classes.dex"); -- GitLab