Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Revert "Added userInfo property, and NS_BLOCKS_AVAILABLE flagss"

This reverts commit ec4d117.
  • Loading branch information...
commit 83b2df952246eb247840b5891a3b950e407b0766 1 parent 8a1f801
Cory Alder authored January 13, 2013
10  Classes/ZIStoreButton.h
@@ -27,28 +27,18 @@
27 27
 
28 28
 #define ZI_BUY_NOW_TITLE @"Buy Now"
29 29
 #define ZI_MAX_WIDTH 120.0f
30  
-
31 30
 #define ZI_PADDING 10.0f
32 31
 
33  
-#if NS_BLOCKS_AVAILABLE
34 32
 typedef void (^ActionBlock)();
35  
-#endif
36 33
 
37 34
 @interface ZIStoreButton : UIButton 
38 35
 {
39 36
 	CAGradientLayer *innerLayer3;
40 37
 	BOOL isBlued;
41  
-#if NS_BLOCKS_AVAILABLE
42 38
 	ActionBlock _actionBlock;
43  
-#endif
44  
-	id userInfo;
45 39
 }
46 40
 
47  
-@property (nonatomic, retain) id userInfo;
48  
-
49  
-#if NS_BLOCKS_AVAILABLE
50 41
 -(void)setBuyBlock:(ActionBlock)action;
51  
-#endif
52 42
 
53 43
 
54 44
 @end
3  Classes/ZIStoreButton.m
@@ -28,8 +28,6 @@
28 28
 
29 29
 @implementation ZIStoreButton
30 30
 
31  
-@synthesize userInfo;
32  
-
33 31
 -(void)setBuyBlock:(ActionBlock) action {
34 32
 	_actionBlock = Block_copy(action);
35 33
 }
@@ -180,7 +178,6 @@ - (void)animationDidStop:(CAAnimation *)theAnimation finished:(BOOL)flag {
180 178
 
181 179
 - (void)dealloc {
182 180
 	Block_release(_actionBlock);
183  
-	self.userInfo = nil;
184 181
     [super dealloc];
185 182
 }
186 183
 

0 notes on commit 83b2df9

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