From d8a041d40d36c584db85fe2419a1b53a6255521a Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 28 May 2008 19:05:26 -0400 Subject: [PATCH] Removing the NSStringAdditions.m+h file because we no longer need it * NSStringAdditions.h: Removed * NSStringAdditions.m: Removed * Scrabbalize.xcodeproj: Project updates for the removed files --- Scrabbalize.xcodeproj/project.pbxproj | 6 ---- Source/NSStringAdditions.h | 24 ---------------- Source/NSStringAdditions.m | 40 --------------------------- 3 files changed, 70 deletions(-) delete mode 100644 Source/NSStringAdditions.h delete mode 100644 Source/NSStringAdditions.m diff --git a/Scrabbalize.xcodeproj/project.pbxproj b/Scrabbalize.xcodeproj/project.pbxproj index 5549fe9..710193a 100644 --- a/Scrabbalize.xcodeproj/project.pbxproj +++ b/Scrabbalize.xcodeproj/project.pbxproj @@ -12,7 +12,6 @@ 1E7EDF440DEDFBD9000660B3 /* GradientBackView.m in Sources */ = {isa = PBXBuildFile; fileRef = 1E7EDF420DEDFBD9000660B3 /* GradientBackView.m */; }; 1EAAC79B0D16E9CE0058A23D /* AppController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1EAAC79A0D16E9CE0058A23D /* AppController.m */; }; 1EAAC8420D16F4A40058A23D /* Word.m in Sources */ = {isa = PBXBuildFile; fileRef = 1EAAC8410D16F4A40058A23D /* Word.m */; }; - 1EAAC93C0D17129D0058A23D /* NSStringAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 1EAAC93B0D17129D0058A23D /* NSStringAdditions.m */; }; 1EC5B6600D1CDCAA007D1D24 /* Scrabbalize.icns in Resources */ = {isa = PBXBuildFile; fileRef = 1EC5B65F0D1CDCAA007D1D24 /* Scrabbalize.icns */; }; 8D11072A0486CEB800E47090 /* MainMenu.nib in Resources */ = {isa = PBXBuildFile; fileRef = 29B97318FDCFA39411CA2CEA /* MainMenu.nib */; }; 8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; }; @@ -32,8 +31,6 @@ 1EAAC79A0D16E9CE0058A23D /* AppController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppController.m; path = Source/AppController.m; sourceTree = ""; }; 1EAAC8400D16F4A40058A23D /* Word.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Word.h; path = Source/Word.h; sourceTree = ""; }; 1EAAC8410D16F4A40058A23D /* Word.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Word.m; path = Source/Word.m; sourceTree = ""; }; - 1EAAC93A0D17129D0058A23D /* NSStringAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NSStringAdditions.h; path = Source/NSStringAdditions.h; sourceTree = ""; }; - 1EAAC93B0D17129D0058A23D /* NSStringAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NSStringAdditions.m; path = Source/NSStringAdditions.m; sourceTree = ""; }; 1EC5B65F0D1CDCAA007D1D24 /* Scrabbalize.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = Scrabbalize.icns; sourceTree = ""; }; 29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 29B97319FDCFA39411CA2CEA /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/MainMenu.nib; sourceTree = ""; }; @@ -63,8 +60,6 @@ 1EAAC79A0D16E9CE0058A23D /* AppController.m */, 1EAAC8400D16F4A40058A23D /* Word.h */, 1EAAC8410D16F4A40058A23D /* Word.m */, - 1EAAC93A0D17129D0058A23D /* NSStringAdditions.h */, - 1EAAC93B0D17129D0058A23D /* NSStringAdditions.m */, 1E7EDF430DEDFBD9000660B3 /* GradientBackView.h */, 1E7EDF420DEDFBD9000660B3 /* GradientBackView.m */, ); @@ -218,7 +213,6 @@ 8D11072D0486CEB800E47090 /* main.m in Sources */, 1EAAC79B0D16E9CE0058A23D /* AppController.m in Sources */, 1EAAC8420D16F4A40058A23D /* Word.m in Sources */, - 1EAAC93C0D17129D0058A23D /* NSStringAdditions.m in Sources */, 1E7EDF440DEDFBD9000660B3 /* GradientBackView.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/Source/NSStringAdditions.h b/Source/NSStringAdditions.h deleted file mode 100644 index c1485aa..0000000 --- a/Source/NSStringAdditions.h +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Scrabbalize - * Copyright (c) 2007-2008, Blue Static - * - * This program is free software; you can redistribute it and/or modify it under the terms of the GNU - * General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if not, - * write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - */ - -#import - - -@interface NSString (NSStringAdditions) - -- (int)occurrenceOfChar:(NSString *)aChar; - -@end diff --git a/Source/NSStringAdditions.m b/Source/NSStringAdditions.m deleted file mode 100644 index 2703eaa..0000000 --- a/Source/NSStringAdditions.m +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Scrabbalize - * Copyright (c) 2007-2008, Blue Static - * - * This program is free software; you can redistribute it and/or modify it under the terms of the GNU - * General Public License as published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License along with this program; if not, - * write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - */ - -#import "NSStringAdditions.h" - - -@implementation NSString (NSStringAdditions) - -/** - * Counts the number of times a given character is in the string - */ -- (int)occurrenceOfChar:(NSString *)aChar -{ - int count = 0; - - for (int i = 0; i < [self length]; i++) - { - if ([[self substringWithRange:NSMakeRange(i, 1)] isEqualToString:aChar]) - { - count++; - } - } - - return count; -} - -@end -- 2.43.5