Improved: Remove unused ‘StringUtil#removeNumeric’ method

(OFBIZ-11014)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1859928 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mathieu Lirzin
2019-05-25 09:22:58 +00:00
parent ad9fc62be5
commit b24f702c77
2 changed files with 0 additions and 9 deletions
@@ -364,11 +364,6 @@ public class StringUtil {
return removeRegex(str,"[\\D]");
}
/** Removes all numbers from str */
public static String removeNumeric(String str) {
return removeRegex(str,"[\\d]");
}
/**
* @param str
* @param regex
@@ -196,10 +196,6 @@ public class StringUtilTests extends GenericTestCaseBase {
assertEquals("just numbers", "12345", StringUtil.removeNonNumeric("a1'2;3]4!5("));
}
public void testRemoveNumeric() {
assertEquals("only numbers", "a';]!(", StringUtil.removeNumeric("a1'2;3]4!5("));
}
public void testRemoveRegex() {
}