From 462c1a00f970c78194f225000e744e810971be6c Mon Sep 17 00:00:00 2001 From: Fred Kiefer Date: Mon, 12 Oct 2009 16:10:10 +0000 Subject: [PATCH] Remove two no longer needed hash methods. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28813 72102866-910b-0410-8b05-ffd578937521 --- Source/NSColor.m | 40 ---------------------------------------- 1 file changed, 40 deletions(-) diff --git a/Source/NSColor.m b/Source/NSColor.m index 589a48c33..cf5bf9b18 100644 --- a/Source/NSColor.m +++ b/Source/NSColor.m @@ -2361,27 +2361,6 @@ static NSRecursiveLock *namedColorLock = nil; *alpha = _alpha_component; } -- (NSUInteger) hash -{ - union { - uint8_t bytes[sizeof(float)*5]; - float floats[5]; - } u; - NSUInteger h = 0; - unsigned i; - - u.floats[0] = _cyan_component; - u.floats[1] = _magenta_component; - u.floats[2] = _yellow_component; - u.floats[3] = _black_component; - u.floats[4] = _alpha_component; - for (i = 0; i < sizeof(u); i++) - { - h = (h << 5) + h + u.bytes[i]; - } - return h; -} - - (BOOL) isEqual: (id)other { if (other == self) @@ -2621,25 +2600,6 @@ static NSRecursiveLock *namedColorLock = nil; *alpha = _alpha_component; } -- (NSUInteger) hash -{ - union { - uint8_t bytes[sizeof(float)*3]; - float floats[3]; - } u; - NSUInteger h = 0; - unsigned i; - - u.floats[0] = _red_component; - u.floats[1] = _green_component; - u.floats[2] = _blue_component; - for (i = 0; i < sizeof(u); i++) - { - h = (h << 5) + h + u.bytes[i]; - } - return h; -} - - (BOOL) isEqual: (id)other { if (other == self)