cleanup from removal of smali-debugging

This commit is contained in:
Connor Tumbleson 2016-03-10 09:29:05 -05:00
parent 285da3836c
commit ee8e9cea3d

View File

@ -69,28 +69,10 @@ public class SmaliBuilder {
} catch (IOException | RecognitionException ex) { } catch (IOException | RecognitionException ex) {
throw new AndrolibException(ex); throw new AndrolibException(ex);
} }
return; } else {
}
if (!fileName.endsWith(".java")) {
LOGGER.warning("Unknown file type, ignoring: " + inFile); LOGGER.warning("Unknown file type, ignoring: " + inFile);
return;
} }
StringBuilder out = new StringBuilder();
List<String> lines = IOUtils.readLines(inStream);
inStream.close(); inStream.close();
final String[] linesArray = lines.toArray(new String[0]);
for (int i = 1; i < linesArray.length - 1; i++) {
out.append(linesArray[i].split("//", 2)[1]).append('\n');
}
try {
if (!SmaliMod.assembleSmaliFile(out.toString(),dexBuilder, false, false, inFile)) {
throw new AndrolibException("Could not smali file: " + fileName);
}
} catch (IOException | RecognitionException ex) {
throw new AndrolibException(ex);
}
} }
private final ExtFile mSmaliDir; private final ExtFile mSmaliDir;