Skip to content

Commit

Permalink
[Truffle] We don't compare ByteLists.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Dec 9, 2016
1 parent ff90fa7 commit 3180e2b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions truffle/src/main/java/org/jruby/truffle/util/ByteList.java
Expand Up @@ -49,7 +49,7 @@
* of characters. However, its API resembles StringBuffer/StringBuilder more than String
* because it is a mutable object.
*/
public class ByteList implements Comparable, CharSequence {
public class ByteList implements CharSequence {

public static final byte[] NULL_ARRAY = new byte[0];
public static final ByteList EMPTY_BYTELIST = new ByteList(0);
Expand Down Expand Up @@ -697,14 +697,6 @@ public boolean equal(ByteList other) {
return false;
}

/**
* This comparison matches MRI comparison of Strings (rb_str_cmp).
* I wish we had memcmp right now...
*/
public int compareTo(Object other) {
return cmp((ByteList)other);
}

/**
* This comparison matches MRI comparison of Strings (rb_str_cmp).
*/
Expand Down

0 comments on commit 3180e2b

Please sign in to comment.