Don't use con.smali to test if we're on a windows system.

This commit is contained in:
Ben Gruver 2012-09-04 23:38:21 -07:00
parent 06bc17a75e
commit 4374e7babc

View File

@ -121,23 +121,6 @@ public class ClassFileNameHandler {
return false;
} catch (IOException ex) {
//if an exception occured, it's likely that we're on a windows system.
}
//let's try one more reserved filename
f = new File(path, "con.smali");
if (f.exists()) {
return false;
}
try {
FileWriter writer = new FileWriter(f);
writer.write("test");
writer.flush();
writer.close();
f.delete(); //doesn't throw IOException
return false;
} catch (IOException ex) {
//yup, looks like we're on a windows system
return true;
}
}