BUG-7464: Remove unused TrieMap.apply() 85/49885/5
authorRobert Varga <rovarga@cisco.com>
Sat, 31 Dec 2016 12:05:05 +0000 (13:05 +0100)
committerRobert Varga <rovarga@cisco.com>
Mon, 9 Jan 2017 14:17:12 +0000 (15:17 +0100)
This method is not used anywhere, remove it.

Change-Id: I5ab2311cdf0352b21a7f8832aa8fe414082eb074
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
third-party/triemap/src/main/java/org/opendaylight/yangtools/triemap/TrieMap.java

index 3b45b7ed1d3b62e8ee0b738ef7a77b18e2b5d347..cc6a33b3287a41217a376104440af1703b3fca15 100644 (file)
@@ -27,7 +27,6 @@ import java.util.Arrays;
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
-import java.util.NoSuchElementException;
 import java.util.Set;
 import java.util.concurrent.ConcurrentMap;
 import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;
@@ -421,21 +420,6 @@ public class TrieMap<K, V> extends AbstractMap<K, V> implements ConcurrentMap<K,
         }
     }
 
-    final V apply (final K k) {
-        int hc = computeHash (k);
-        Object res = lookuphc (k, hc);
-        if (res == null) {
-            throw new NoSuchElementException ();
-        } else {
-            return (V) res;
-        }
-    }
-
-//    final public Option<V> get (K k) {
-//        int hc = computeHash (k);
-//        return Option.makeOption ((V)lookuphc (k, hc));
-//    }
-
     @Override
     final public V get (final Object k) {
         return lookup((K)k);