From 908822aa64c03ec4e8ca9fd3202f740c3e844bbd Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Mon, 7 Jul 2014 07:26:05 -0700 Subject: gluegen: remove the unused reverse map from TypeDictionary --- src/java/com/jogamp/gluegen/cgram/types/TypeDictionary.java | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/java/com') diff --git a/src/java/com/jogamp/gluegen/cgram/types/TypeDictionary.java b/src/java/com/jogamp/gluegen/cgram/types/TypeDictionary.java index f6409db..cd03388 100644 --- a/src/java/com/jogamp/gluegen/cgram/types/TypeDictionary.java +++ b/src/java/com/jogamp/gluegen/cgram/types/TypeDictionary.java @@ -48,20 +48,12 @@ public class TypeDictionary { /** Mapping from type name to type.*/ private final HashMap map = new HashMap(); - /** Reverse mapping; created lazily from the regular map */ - private final HashMap, String> reverseMap = new HashMap, String>(); - - /** Has a type been added/removed since the last time the reverse map was - * calculated? */ - private boolean reverseMapOutOfDate = false; - /** * Create a mapping from a type to its name. * @param name the name to which the type is defined * @param type the type that can be referred to by the specified name. */ public Type put(final String name, final Type type) { - reverseMapOutOfDate = true; return map.put(name, type); } @@ -88,7 +80,6 @@ public class TypeDictionary { /** Remove the mapping from the specified name to its associated type.*/ public Type remove(final String name) { - reverseMapOutOfDate = true; return map.remove(name); } -- cgit v1.2.3