Permalink
Browse files

[DEV] Clean-up. Nonatomic properties, remove unused methods, unsigned…

… => NSUInteger. (Jim Correia)
  • Loading branch information...
1 parent b8fa54a commit a174c19ee70bd99c93f2c194aeb8199bd53208b8 @rentzsch committed Jan 28, 2009
Showing with 4 additions and 11 deletions.
  1. +2 −2 Plugin/Plugin.h
  2. +2 −9 Plugin/Plugin.m
View
@@ -40,8 +40,8 @@ THE SOFTWARE.
- (id) initWithArguments:(NSDictionary *)arguments;
-@property (retain) DOMElement *container;
-@property (retain) NSString *host;
+@property (nonatomic, retain) DOMElement *container;
+@property (nonatomic, retain) NSString *host;
- (IBAction)addToWhitelist:(id)sender;
- (IBAction)removeFromWhitelist:(id)sender;
View
@@ -33,7 +33,6 @@ of this software and associated documentation files (the "Software"), to deal
static NSString *sHostWhitelistDefaultsKey = @"ClickToFlash.whitelist";
@interface CTFClickToFlashPlugin (Internal)
-- (NSColor *) _backgroundColorOfElement:(DOMElement *)element;
- (void) _convertTypesForContainer;
- (void) _drawBackground;
- (BOOL) _isOptionPressed;
@@ -108,12 +107,6 @@ - (void) drawRect:(NSRect)rect
}
-- (BOOL) acceptsFirstMouse
-{
- return YES;
-}
-
-
- (void) mouseDown:(NSEvent *)event
{
[self _convertTypesForContainer];
@@ -325,8 +318,8 @@ - (void) _convertTypesForContainer
{
DOMElement *newElement = (DOMElement *)[self.container cloneNode:YES];
- DOMNodeList *nodeList;
- unsigned i;
+ DOMNodeList *nodeList = nil;
+ NSUInteger i;
[self _convertTypesForElement:newElement];

0 comments on commit a174c19

Please sign in to comment.