Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/org/jcodings/CodeRange.java
Original file line number Diff line number Diff line change
@@ -21,19 +21,7 @@

public class CodeRange {
public static boolean isInCodeRange(int[]p, int code) {
int low = 0;
int n = p[0];
int high = n;

while (low < high) {
int x = (low + high) >> 1;
if (code > p[(x << 1) + 2]) {
low = x + 1;
} else {
high = x;
}
}
return low < n && code >= p[(low << 1) + 1];
return isInCodeRange(p, 0, code);
}

public static boolean isInCodeRange(int[]p, int offset, int code) {

0 comments on commit b6d9896

Please sign in to comment.