diff --git a/Classes/ZIStoreButton.h b/Classes/ZIStoreButton.h index b41d2ba..81a4072 100644 --- a/Classes/ZIStoreButton.h +++ b/Classes/ZIStoreButton.h @@ -27,28 +27,18 @@ #define ZI_BUY_NOW_TITLE @"Buy Now" #define ZI_MAX_WIDTH 120.0f - #define ZI_PADDING 10.0f -#if NS_BLOCKS_AVAILABLE typedef void (^ActionBlock)(); -#endif @interface ZIStoreButton : UIButton { CAGradientLayer *innerLayer3; BOOL isBlued; -#if NS_BLOCKS_AVAILABLE ActionBlock _actionBlock; -#endif - id userInfo; } -@property (nonatomic, retain) id userInfo; - -#if NS_BLOCKS_AVAILABLE -(void)setBuyBlock:(ActionBlock)action; -#endif @end diff --git a/Classes/ZIStoreButton.m b/Classes/ZIStoreButton.m index 08bb571..4e8afa6 100644 --- a/Classes/ZIStoreButton.m +++ b/Classes/ZIStoreButton.m @@ -28,8 +28,6 @@ @implementation ZIStoreButton -@synthesize userInfo; - -(void)setBuyBlock:(ActionBlock) action { _actionBlock = Block_copy(action); } @@ -180,7 +178,6 @@ - (void)animationDidStop:(CAAnimation *)theAnimation finished:(BOOL)flag { - (void)dealloc { Block_release(_actionBlock); - self.userInfo = nil; [super dealloc]; }