core: remove unused method
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user