Remove unused code from Immutables 89/5689/4
authorRobert Varga <rovarga@cisco.com>
Wed, 19 Mar 2014 16:35:16 +0000 (17:35 +0100)
committerRobert Varga <rovarga@cisco.com>
Tue, 25 Mar 2014 10:40:40 +0000 (11:40 +0100)
Change-Id: Ied0ba65a6ded0cb8d9ebfd57d3af7d87a355629b
Signed-off-by: Robert Varga <rovarga@cisco.com>
common/concepts/src/main/java/org/opendaylight/yangtools/concepts/util/Immutables.java

index 403d0341c687020a14795212189d1fe70c1e06bf..d659123f9710e81a6fbc4c6df8ef3978e283c786 100644 (file)
@@ -12,8 +12,6 @@ import java.math.BigInteger;
 import java.util.Collections;
 import java.util.HashSet;
 import java.util.Set;
-import java.util.concurrent.atomic.AtomicInteger;
-import java.util.concurrent.atomic.AtomicLong;
 
 import org.opendaylight.yangtools.concepts.Immutable;
 import org.opendaylight.yangtools.concepts.Mutable;
@@ -31,10 +29,10 @@ public class Immutables {
 
     /**
      * Determines if object is known to be immutable
-     * 
+     *
      * Note: This method may return false to immutable objects which
      * immutability is not known, was defined not using concepts term.
-     * 
+     *
      * @param o
      *            Reference to check
      * @return true if object is known to be immutable false otherwise.
@@ -55,17 +53,6 @@ public class Immutables {
         return false;
     }
 
-    private static boolean isNumberImmutable(Number o) {
-        if(o instanceof AtomicInteger) {
-            return false;
-        } else if(o instanceof AtomicLong) {
-            return false;
-        } else if(o instanceof Short) {
-            return true;
-        }
-        return false;
-    }
-
     @SafeVarargs
     private static <E> Set<E> asHashSet(E... list) {
         HashSet<E> ret = new HashSet<>();