Skip to content

Commit

Permalink
Remove unused category
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred Leitz authored and Fred Leitz committed May 2, 2013
1 parent 5fdc0f6 commit 95c3485
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ColorArt/Classes/SLColorArt.m
Expand Up @@ -22,10 +22,6 @@
#define kAnalyzedSecondaryColor @"kAnalyzedSecondaryColor"
#define kAnalyzedDetailColor @"kAnalyzedDetailColor"

@interface UIColor (Copying)
- (id)copyWithZone:(NSZone *)zone;
@end


@interface UIColor (DarkAddition)

Expand Down Expand Up @@ -265,14 +261,14 @@ - (UIColor*)_findEdgeColor:(UIImage*)image imageColors:(NSArray**)colors
for(NSUInteger g = 0; g < pixelRange; g++) {
for(NSUInteger r = 0; r < pixelRange; r++) {
NSUInteger count = rawImageColors[r][g][b];
if(count > self.randomColorThreshold) {
if(count > _randomColorThreshold) {
UIColor* color = [UIColor colorWithRed:r / (CGFloat)pixelRange green:g / (CGFloat)pixelRange blue:b / (CGFloat)pixelRange alpha:1];
PCCountedColor* countedColor = [[PCCountedColor alloc] initWithColor:color count:count];
[imageColors addObject:countedColor];
}

count = rawEdgeColors[r][g][b];
if(count > self.randomColorThreshold) {
if(count > _randomColorThreshold) {
UIColor* color = [UIColor colorWithRed:r / (CGFloat)pixelRange green:g / (CGFloat)pixelRange blue:b / (CGFloat)pixelRange alpha:1];
PCCountedColor* countedColor = [[PCCountedColor alloc] initWithColor:color count:count];
[edgeColors addObject:countedColor];
Expand Down

0 comments on commit 95c3485

Please sign in to comment.