aboutsummaryrefslogtreecommitdiff
path: root/GTMDefines.h
diff options
context:
space:
mode:
authorGravatar dmaclach <dmaclach@gmail.com>2018-11-13 13:40:11 -0800
committerGravatar GitHub <noreply@github.com>2018-11-13 13:40:11 -0800
commit585c6a67e867aa681dcf73b2c62f73224137af73 (patch)
treeb03733c34b4a97e04e06b1495105322506b6b6a9 /GTMDefines.h
parenta116cfebae03926f059104ae69d77f8ba8908666 (diff)
Remove GTM_FOREACH_* macros. (#201)
These have been useless since macOS 10.5.
Diffstat (limited to 'GTMDefines.h')
-rw-r--r--GTMDefines.h23
1 files changed, 0 insertions, 23 deletions
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