mirror of
https://github.com/revanced/Apktool.git
synced 2024-11-06 12:47:03 +01:00
refactor: drop unused method
This commit is contained in:
parent
cd275ff48b
commit
e19c44b1b1
@ -23,8 +23,6 @@ import brut.directory.DirUtil;
|
||||
import brut.directory.Directory;
|
||||
import brut.directory.FileDirectory;
|
||||
import brut.util.OS;
|
||||
import org.custommonkey.xmlunit.ElementQualifier;
|
||||
import org.w3c.dom.Element;
|
||||
import org.xmlpull.v1.XmlPullParser;
|
||||
import org.xmlpull.v1.XmlPullParserException;
|
||||
import org.xmlpull.v1.XmlPullParserFactory;
|
||||
@ -142,24 +140,6 @@ public abstract class TestUtils {
|
||||
return framework.getFrameworkDirectory();
|
||||
}
|
||||
|
||||
public static class ResValueElementQualifier implements ElementQualifier {
|
||||
|
||||
@Override
|
||||
public boolean qualifyForComparison(Element control, Element test) {
|
||||
String controlType = control.getTagName();
|
||||
if ("item".equals(controlType)) {
|
||||
controlType = control.getAttribute("type");
|
||||
}
|
||||
|
||||
String testType = test.getTagName();
|
||||
if ("item".equals(testType)) {
|
||||
testType = test.getAttribute("type");
|
||||
}
|
||||
|
||||
return controlType.equals(testType) && control.getAttribute("name").equals(test.getAttribute("name"));
|
||||
}
|
||||
}
|
||||
|
||||
public static String replaceNewlines(String value) {
|
||||
return value.replace("\n", "").replace("\r", "");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user