From 585c6a67e867aa681dcf73b2c62f73224137af73 Mon Sep 17 00:00:00 2001 From: dmaclach Date: Tue, 13 Nov 2018 13:40:11 -0800 Subject: Remove GTM_FOREACH_* macros. (#201) These have been useless since macOS 10.5. --- GTMDefines.h | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'GTMDefines.h') diff --git a/GTMDefines.h b/GTMDefines.h index 7feb1cb..68ff8c0 100644 --- a/GTMDefines.h +++ b/GTMDefines.h @@ -336,29 +336,6 @@ #define GTM_NSSTRINGIFY(x) GTM_NSSTRINGIFY_INNER(x) #endif -// Macro to allow fast enumeration when building for 10.5 or later, and -// reliance on NSEnumerator for 10.4. Remember, NSDictionary w/ FastEnumeration -// does keys, so pick the right thing, nothing is done on the FastEnumeration -// side to be sure you're getting what you wanted. -#ifndef GTM_FOREACH_OBJECT - #if TARGET_OS_IPHONE || !(MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5) - #define GTM_FOREACH_ENUMEREE(element, enumeration) \ - for (element in enumeration) - #define GTM_FOREACH_OBJECT(element, collection) \ - for (element in collection) - #define GTM_FOREACH_KEY(element, collection) \ - for (element in collection) - #else - #define GTM_FOREACH_ENUMEREE(element, enumeration) \ - for (NSEnumerator *_ ## element ## _enum = enumeration; \ - (element = [_ ## element ## _enum nextObject]) != nil; ) - #define GTM_FOREACH_OBJECT(element, collection) \ - GTM_FOREACH_ENUMEREE(element, [collection objectEnumerator]) - #define GTM_FOREACH_KEY(element, collection) \ - GTM_FOREACH_ENUMEREE(element, [collection keyEnumerator]) - #endif -#endif - // ============================================================================ // GTM_SEL_STRING is for specifying selector (usually property) names to KVC -- cgit v1.2.3