refactor: drop unused method

This commit is contained in:
Connor Tumbleson 2023-07-30 13:16:34 -04:00
parent cd275ff48b
commit e19c44b1b1
No known key found for this signature in database
GPG Key ID: C3CC0A201EC7DA75

View File

@ -23,8 +23,6 @@ import brut.directory.DirUtil;
import brut.directory.Directory; import brut.directory.Directory;
import brut.directory.FileDirectory; import brut.directory.FileDirectory;
import brut.util.OS; import brut.util.OS;
import org.custommonkey.xmlunit.ElementQualifier;
import org.w3c.dom.Element;
import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException; import org.xmlpull.v1.XmlPullParserException;
import org.xmlpull.v1.XmlPullParserFactory; import org.xmlpull.v1.XmlPullParserFactory;
@ -142,24 +140,6 @@ public abstract class TestUtils {
return framework.getFrameworkDirectory(); 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) { public static String replaceNewlines(String value) {
return value.replace("\n", "").replace("\r", ""); return value.replace("\n", "").replace("\r", "");
} }