Skip to content
Browse files

Fixed a Xcode 4.2 compile issue where order of undeclared methods sti…

…ll matters
  • Loading branch information...
1 parent a0fc7ab commit 0fa188be1444f7bc8380785c5dfa18616fff0ec6 @alexandergriekspoor alexandergriekspoor committed
Showing with 10 additions and 10 deletions.
  1. +10 −10 Source/MABGTimer.m
View
20 Source/MABGTimer.m
@@ -31,6 +31,16 @@ - (id)initWithObject: (id)obj behavior: (MABGTimerBehavior)behavior queueLabel:(
return self;
}
+- (void)_cancel
+{
+ if(_timer)
+ {
+ dispatch_source_cancel(_timer);
+ dispatch_release(_timer);
+ _timer = NULL;
+ }
+}
+
- (void)_finalize
{
[self _cancel];
@@ -51,16 +61,6 @@ - (void)dealloc
#endif
}
-- (void)_cancel
-{
- if(_timer)
- {
- dispatch_source_cancel(_timer);
- dispatch_release(_timer);
- _timer = NULL;
- }
-}
-
- (void)setTargetQueue: (dispatch_queue_t)target
{
dispatch_set_target_queue(_queue, target);

0 comments on commit 0fa188b

Please sign in to comment.
Something went wrong with that request. Please try again.