Removed useless code, thanks to Lin Zhao !
authorEmmanuel Lécharny <elecharny@apache.org>
Fri, 27 Feb 2015 07:37:54 +0000 (07:37 +0000)
committerEmmanuel Lécharny <elecharny@apache.org>
Fri, 27 Feb 2015 07:37:54 +0000 (07:37 +0000)
mavibot/src/main/java/org/apache/directory/mavibot/btree/PersistedLeaf.java

index 18a7910..3f51504 100644 (file)
@@ -1088,11 +1088,6 @@ import org.apache.directory.mavibot.btree.exception.KeyNotFoundException;
         // Get the pivot
         K pivot = rightLeaf.keys[0].getKey();
 
-        if ( pivot == null )
-        {
-            pivot = rightLeaf.keys[0].getKey();
-        }
-
         // Create the result
         InsertResult<K, V> result = new SplitResult<K, V>( pivot, leftLeaf, rightLeaf );
 
@@ -1345,11 +1340,6 @@ import org.apache.directory.mavibot.btree.exception.KeyNotFoundException;
         // Get the pivot
         K pivot = rightLeaf.keys[0].getKey();
 
-        if ( pivot == null )
-        {
-            pivot = rightLeaf.keys[0].getKey();
-        }
-
         // Create the result
         InsertResult<K, V> result = new SplitResult<K, V>( pivot, leftLeaf, rightLeaf );