diff options
author | Sven Gothel <[email protected]> | 2012-10-16 06:57:15 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-10-16 06:57:15 +0200 |
commit | 3ccb9dbc00746d31f08a907d190892d68273d4bf (patch) | |
tree | eb130ef4a49eb2acb42f85e6e6d9a46b3c6bd5bd /src/java/com/jogamp/gluegen | |
parent | a8e9be19b0215fe349c1861c5ea866e929923337 (diff) |
Reducing Type's equals
Diffstat (limited to 'src/java/com/jogamp/gluegen')
-rw-r--r-- | src/java/com/jogamp/gluegen/cgram/types/Type.java | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/java/com/jogamp/gluegen/cgram/types/Type.java b/src/java/com/jogamp/gluegen/cgram/types/Type.java index caa6d96..281f35c 100644 --- a/src/java/com/jogamp/gluegen/cgram/types/Type.java +++ b/src/java/com/jogamp/gluegen/cgram/types/Type.java @@ -196,40 +196,8 @@ public abstract class Type implements Cloneable { } final Type t = (Type)arg; - if ( size != t.size ) { - return false; - } - - if ( cvAttributes != t.cvAttributes ) { - return false; - } - - if ( null == name ) { - return null == t.name; - } else { - return name.equals(t.name); - } - - /* - * Orig: - * - return ( ( name == null ? t.name == null : name.equals(t.name) ) || - ( name != null && name.equals(name) ) - ) && size == t.size && cvAttributes == t.cvAttributes; - - Cleaned-1: - - return size == t.size && cvAttributes == t.cvAttributes && - ( ( name == null ? t.name == null : name.equals(t.name) ) || - ( name != null && name.equals(name) ) - ); - - Cleaned-2: - return size == t.size && cvAttributes == t.cvAttributes && ( null == name ? null == t.name : name.equals(t.name) ) ; - - */ } /** Returns a string representation of this type. This string is not |