aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMRegex.m
diff options
context:
space:
mode:
Diffstat (limited to 'Foundation/GTMRegex.m')
-rw-r--r--Foundation/GTMRegex.m13
1 files changed, 0 insertions, 13 deletions
diff --git a/Foundation/GTMRegex.m b/Foundation/GTMRegex.m
index d0b831c..238ca48 100644
--- a/Foundation/GTMRegex.m
+++ b/Foundation/GTMRegex.m
@@ -190,19 +190,6 @@ static NSString *const kReplacementPattern =
return self;
}
-#if GTM_SUPPORT_GC
-- (void)finalize {
- // we used pattern_ as our flag that we initialized the regex_t
- if (pattern_) {
- regfree(&regexData_);
- [pattern_ release];
- // play it safe and clear it since we use it as a flag for regexData_
- pattern_ = nil;
- }
- [super finalize];
-}
-#endif
-
- (void)dealloc {
// we used pattern_ as our flag that we initialized the regex_t
if (pattern_) {