Skip to content

Commit

Permalink
[DEV] Clean-up. Nonatomic properties, remove unused methods, unsigned…
Browse files Browse the repository at this point in the history
… => NSUInteger. (Jim Correia)
  • Loading branch information
rentzsch committed Jan 28, 2009
1 parent b8fa54a commit a174c19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Plugin/Plugin.h
Expand Up @@ -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;
Expand Down
11 changes: 2 additions & 9 deletions Plugin/Plugin.m
Expand Up @@ -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;
Expand Down Expand Up @@ -108,12 +107,6 @@ - (void) drawRect:(NSRect)rect
}


- (BOOL) acceptsFirstMouse
{
return YES;
}


- (void) mouseDown:(NSEvent *)event
{
[self _convertTypesForContainer];
Expand Down Expand Up @@ -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];

Expand Down

0 comments on commit a174c19

Please sign in to comment.