From b804b4815145a629e289b0a0ee919a23dc01615c Mon Sep 17 00:00:00 2001 From: Ole Zorn Date: Sun, 27 Oct 2013 01:30:00 +0200 Subject: [PATCH] Removed UIImage+Tinting (no longer used) --- AppSales.xcodeproj/project.pbxproj | 6 ------ Classes/AccountsViewController.m | 1 - Classes/BadgedCell.m | 1 - Classes/UIImage+Tinting.h | 15 --------------- Classes/UIImage+Tinting.m | 28 ---------------------------- 5 files changed, 51 deletions(-) delete mode 100644 Classes/UIImage+Tinting.h delete mode 100644 Classes/UIImage+Tinting.m diff --git a/AppSales.xcodeproj/project.pbxproj b/AppSales.xcodeproj/project.pbxproj index cf18bcd6..f5947705 100644 --- a/AppSales.xcodeproj/project.pbxproj +++ b/AppSales.xcodeproj/project.pbxproj @@ -80,7 +80,6 @@ 7FAEB66613E6D0EE00750788 /* BadgedCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 7FAEB66513E6D0EE00750788 /* BadgedCell.m */; }; 7FAEB66A13E6D1AF00750788 /* Badge.png in Resources */ = {isa = PBXBuildFile; fileRef = 7FAEB66813E6D1AF00750788 /* Badge.png */; }; 7FAEB66B13E6D1AF00750788 /* Badge@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 7FAEB66913E6D1AF00750788 /* Badge@2x.png */; }; - 7FAEB67113E6D3AC00750788 /* UIImage+Tinting.m in Sources */ = {isa = PBXBuildFile; fileRef = 7FAEB67013E6D3AB00750788 /* UIImage+Tinting.m */; }; 7FAEB67813E6DD4C00750788 /* Account.png in Resources */ = {isa = PBXBuildFile; fileRef = 7FAEB67613E6DD4C00750788 /* Account.png */; }; 7FAEB67913E6DD4C00750788 /* Account@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 7FAEB67713E6DD4C00750788 /* Account@2x.png */; }; 7FAEB68F13E75B0000750788 /* About.html in Resources */ = {isa = PBXBuildFile; fileRef = 7FAEB68E13E75AFF00750788 /* About.html */; }; @@ -738,8 +737,6 @@ 7FAEB66513E6D0EE00750788 /* BadgedCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BadgedCell.m; sourceTree = ""; }; 7FAEB66813E6D1AF00750788 /* Badge.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Badge.png; sourceTree = ""; }; 7FAEB66913E6D1AF00750788 /* Badge@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Badge@2x.png"; sourceTree = ""; }; - 7FAEB66F13E6D3AB00750788 /* UIImage+Tinting.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIImage+Tinting.h"; sourceTree = ""; }; - 7FAEB67013E6D3AB00750788 /* UIImage+Tinting.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIImage+Tinting.m"; sourceTree = ""; }; 7FAEB67613E6DD4C00750788 /* Account.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Account.png; sourceTree = ""; }; 7FAEB67713E6DD4C00750788 /* Account@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Account@2x.png"; sourceTree = ""; }; 7FAEB68E13E75AFF00750788 /* About.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = About.html; sourceTree = ""; }; @@ -1656,8 +1653,6 @@ 7F709D6213BCB64F0008DBAD /* FieldEditorViewController.m */, 7FAEB66413E6D0EE00750788 /* BadgedCell.h */, 7FAEB66513E6D0EE00750788 /* BadgedCell.m */, - 7FAEB66F13E6D3AB00750788 /* UIImage+Tinting.h */, - 7FAEB67013E6D3AB00750788 /* UIImage+Tinting.m */, 7FAEB69013E75B7400750788 /* AboutViewController.h */, 7FAEB69113E75B7400750788 /* AboutViewController.m */, 7F963B4013E98B8600CA62FD /* AccountStatusView.h */, @@ -2815,7 +2810,6 @@ 7F398ED513DF570E004BEC44 /* ReportDetailEntry.m in Sources */, 7F24E70713E40A0D0056EA97 /* DashboardViewController.m in Sources */, 7FAEB66613E6D0EE00750788 /* BadgedCell.m in Sources */, - 7FAEB67113E6D3AC00750788 /* UIImage+Tinting.m in Sources */, 7FAEB69213E75B7400750788 /* AboutViewController.m in Sources */, 7F963B4213E98B8600CA62FD /* AccountStatusView.m in Sources */, 7F26689714055D2200FD2CC5 /* AccountsViewController+VendorID.m in Sources */, diff --git a/Classes/AccountsViewController.m b/Classes/AccountsViewController.m index 7748e1d8..ffbe2387 100644 --- a/Classes/AccountsViewController.m +++ b/Classes/AccountsViewController.m @@ -17,7 +17,6 @@ #import "MBProgressHUD.h" #import "ReportImportOperation.h" #import "BadgedCell.h" -#import "UIImage+Tinting.h" #import "AboutViewController.h" #import "AccountStatusView.h" #import "KKPasscodeLock.h" diff --git a/Classes/BadgedCell.m b/Classes/BadgedCell.m index e08d623a..bd73aec6 100644 --- a/Classes/BadgedCell.m +++ b/Classes/BadgedCell.m @@ -7,7 +7,6 @@ // #import "BadgedCell.h" -#import "UIImage+Tinting.h" @implementation BadgedCell diff --git a/Classes/UIImage+Tinting.h b/Classes/UIImage+Tinting.h deleted file mode 100644 index 8b3ddaa2..00000000 --- a/Classes/UIImage+Tinting.h +++ /dev/null @@ -1,15 +0,0 @@ -// -// UIImage+Tinting.h -// AppSales -// -// Created by Ole Zorn on 01.08.11. -// Copyright 2011 omz:software. All rights reserved. -// - -#import - -@interface UIImage (Tinting) - -+ (UIImage *)as_tintedImageNamed:(NSString *)name color:(UIColor *)color; - -@end diff --git a/Classes/UIImage+Tinting.m b/Classes/UIImage+Tinting.m deleted file mode 100644 index dd1c99f2..00000000 --- a/Classes/UIImage+Tinting.m +++ /dev/null @@ -1,28 +0,0 @@ -// -// UIImage+Tinting.m -// AppSales -// -// Created by Ole Zorn on 01.08.11. -// Copyright 2011 omz:software. All rights reserved. -// - -#import "UIImage+Tinting.h" - -@implementation UIImage (Tinting) - -+ (UIImage *)as_tintedImageNamed:(NSString *)name color:(UIColor *)color -{ - UIImage *image = [UIImage imageNamed:name]; - CGRect rect = CGRectMake(0, 0, image.size.width, image.size.height); - UIGraphicsBeginImageContextWithOptions(rect.size, NO, image.scale); - CGContextRef c = UIGraphicsGetCurrentContext(); - [image drawInRect:rect]; - CGContextSetFillColorWithColor(c, [color CGColor]); - CGContextSetBlendMode(c, kCGBlendModeSourceAtop); - CGContextFillRect(c, rect); - UIImage *result = UIGraphicsGetImageFromCurrentImageContext(); - UIGraphicsEndImageContext(); - return result; -} - -@end