asfgit closed pull request #945: Remove redundant call whos value is not used 
anyways
URL: https://github.com/apache/fluo/pull/945
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/modules/api/src/main/java/org/apache/fluo/api/data/Bytes.java 
b/modules/api/src/main/java/org/apache/fluo/api/data/Bytes.java
index dd79c86b..e6f41b12 100644
--- a/modules/api/src/main/java/org/apache/fluo/api/data/Bytes.java
+++ b/modules/api/src/main/java/org/apache/fluo/api/data/Bytes.java
@@ -249,7 +249,6 @@ public int compareTo(byte[] bytes, int offset, int len) {
    */
   private int compareToUnchecked(byte[] bytes, int offset, int len) {
     if (this.length == this.data.length && len == bytes.length) {
-      int res = UnsignedBytes.lexicographicalComparator().compare(this.data, 
bytes);
       return UnsignedBytes.lexicographicalComparator().compare(this.data, 
bytes);
     } else {
       int minLen = Math.min(this.length, len);


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to