Commit 3357979c authored by Skylot's avatar Skylot

core: remove unused method

parent 2f548dd9
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment