Remove is{List,Map}Type(Type) methods 98/99698/4
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 11 Feb 2022 18:45:12 +0000 (19:45 +0100)
committerRobert Varga <nite@hq.sk>
Thu, 24 Feb 2022 08:27:40 +0000 (08:27 +0000)
These methods are not used anywhere anymore remove them.

Change-Id: I993a2baf48b2603f28559688a907d1b7d7780307
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-model-ri/src/main/java/org/opendaylight/mdsal/binding/model/ri/Types.java

index b1e53087ca5e6a2c02d86a4a379ecf2725772321..81e0d42d99ec0a5902cfb84dba298b426e129bdd 100644 (file)
@@ -180,10 +180,6 @@ public final class Types {
         return MAP_TYPE.equals(type.getRawType());
     }
 
-    public static boolean isMapType(final Type type) {
-        return type instanceof ParameterizedType && isMapType((ParameterizedType) type);
-    }
-
     /**
      * Returns an instance of {@link ParameterizedType} describing the typed {@link Set}&lt;V&gt; with concrete type
      * of value.
@@ -204,6 +200,10 @@ public final class Types {
         return SET_TYPE_WILDCARD;
     }
 
+    public static boolean isSetType(final ParameterizedType type) {
+        return SET_TYPE.equals(type.getRawType());
+    }
+
     /**
      * Returns an instance of {@link ParameterizedType} describing the typed {@link List}&lt;V&gt; with concrete type
      * of value.
@@ -224,18 +224,10 @@ public final class Types {
         return LIST_TYPE_WILDCARD;
     }
 
-    public static boolean isSetType(final ParameterizedType type) {
-        return SET_TYPE.equals(type.getRawType());
-    }
-
     public static boolean isListType(final ParameterizedType type) {
         return LIST_TYPE.equals(type.getRawType());
     }
 
-    public static boolean isListType(final Type type) {
-        return type instanceof ParameterizedType && isListType((ParameterizedType) type);
-    }
-
     /**
      * Returns an instance of {@link ParameterizedType} describing the typed {@link ListenableFuture}&lt;V&gt;
      * with concrete type of value.