diff --git a/AppKit/CPControl.j b/AppKit/CPControl.j index ca39efb1f..f9ddc817e 100644 --- a/AppKit/CPControl.j +++ b/AppKit/CPControl.j @@ -103,7 +103,6 @@ var CPControlBlackColor = [CPColor blackColor]; CGPoint _previousTrackingLocation; CPString _toolTip; - Function _actionFunction; } + (CPDictionary)themeAttributes @@ -152,7 +151,6 @@ var CPControlBlackColor = [CPColor blackColor]; - (void)setAction:(SEL)anAction { _action = anAction; - _actionFunction = nil; } /*! @@ -180,19 +178,6 @@ var CPControlBlackColor = [CPColor blackColor]; return _target; } -- (void)setActionFunction:(Function)aFunction -{ - [self setTarget:self]; - [self setAction:@selector(performActionFunction:)]; - _actionFunction = aFunction; -} - -- (void)performActionFunction:(Object)sender -{ - if (_actionFunction) - _actionFunction(sender); -} - /*! Causes \c anAction to be sent to \c anObject. @param anAction the action to send