From bf9b5c9219ca59a83e5ee87106ec0f0957f4d649 Mon Sep 17 00:00:00 2001 From: mccallum Date: Mon, 18 Mar 1996 13:44:52 +0000 Subject: [PATCH] ([Dictionary -newEnumState]): Removed useless cruft. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1153 72102866-910b-0410-8b05-ffd578937521 --- Source/Dictionary.m | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Source/Dictionary.m b/Source/Dictionary.m index 094f67833..3990f0429 100644 --- a/Source/Dictionary.m +++ b/Source/Dictionary.m @@ -161,17 +161,11 @@ - (void*) newEnumState { - void *es; - NSMapEnumerator me; + void *me; - OBJC_MALLOC (es, NSMapEnumerator, 1); -#if 1 - *((NSMapEnumerator*)es) = NSEnumerateMapTable (_contents_hash); -#else - me = NSEnumerateMapTable (_contents_hash); - memcpy (es, &me, sizeof (NSMapEnumerator)); -#endif - return es; + OBJC_MALLOC (me, NSMapEnumerator, 1); + *((NSMapEnumerator*)me) = NSEnumerateMapTable (_contents_hash); + return me; } - (void) freeEnumState: (void**)enumState