Skip to content

Commit 607c4bd

Browse files
committed
Making countZeroes private and removing unused code
1 parent 7ae58bc commit 607c4bd

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

genjava/gj-core/src/java/com/generationjava/compare/NumericStringComparator.java

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ private int getLastDigitIndex(char[] chrs, int start) {
192192
return -1;
193193
}
194194

195-
public int countZeroes(String str) {
195+
private int countZeroes(String str) {
196196
int count = 0;
197197

198198
// assuming str is small...
@@ -207,20 +207,4 @@ public int countZeroes(String str) {
207207
return count;
208208
}
209209

210-
// UNUSED
211-
private boolean containsOnly(String str, char ch) {
212-
return containsOnly( str.toCharArray(), ch );
213-
}
214-
private boolean containsOnly(char[] chrs, char ch) {
215-
int sz = chrs.length;
216-
217-
for(int i=0; i<sz; i++) {
218-
if(chrs[i] != ch) {
219-
return false;
220-
}
221-
}
222-
223-
return true;
224-
}
225-
226210
}

0 commit comments

Comments
 (0)