Skip to content

Commit 5033043

Browse files
Sean LearySean Leary
authored andcommitted
remove-unused-code-jsonobject removed unused method from jsonobject
1 parent f1935f5 commit 5033043

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/main/java/org/json/JSONObject.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3013,24 +3013,4 @@ private static JSONException recursivelyDefinedObjectException(String key) {
30133013
"JavaBean object contains recursively defined member variable of key " + quote(key)
30143014
);
30153015
}
3016-
3017-
/**
3018-
* For a prospective number, remove the leading zeros
3019-
* @param value prospective number
3020-
* @return number without leading zeros
3021-
*/
3022-
private static String removeLeadingZerosOfNumber(String value){
3023-
if ("-".equals(value)){return value;}
3024-
boolean negativeFirstChar = (value.charAt(0) == '-');
3025-
int counter = negativeFirstChar ? 1:0;
3026-
while (counter < value.length()){
3027-
if (value.charAt(counter) != '0'){
3028-
if (negativeFirstChar) {return "-".concat(value.substring(counter));}
3029-
return value.substring(counter);
3030-
}
3031-
++counter;
3032-
}
3033-
if (negativeFirstChar) {return "-0";}
3034-
return "0";
3035-
}
30363016
}

0 commit comments

Comments
 (0)