Skip to content

Commit b24f702

Browse files
committed
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
1 parent ad9fc62 commit b24f702

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

framework/base/src/main/java/org/apache/ofbiz/base/util/StringUtil.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -364,11 +364,6 @@ public static String removeNonNumeric(String str) {
364364
return removeRegex(str,"[\\D]");
365365
}
366366

367-
/** Removes all numbers from str */
368-
public static String removeNumeric(String str) {
369-
return removeRegex(str,"[\\d]");
370-
}
371-
372367
/**
373368
* @param str
374369
* @param regex

framework/base/src/main/java/org/apache/ofbiz/base/util/test/StringUtilTests.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,6 @@ public void testRemoveNonNumeric() {
196196
assertEquals("just numbers", "12345", StringUtil.removeNonNumeric("a1'2;3]4!5("));
197197
}
198198

199-
public void testRemoveNumeric() {
200-
assertEquals("only numbers", "a';]!(", StringUtil.removeNumeric("a1'2;3]4!5("));
201-
}
202-
203199
public void testRemoveRegex() {
204200
}
205201

0 commit comments

Comments
 (0)