mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Remove some duplicate methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2324 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4f8556d6cf
commit
43a4cc281f
1 changed files with 20 additions and 40 deletions
|
@ -214,12 +214,6 @@ handle_printf_atsign (FILE *stream,
|
|||
|
||||
// Creating Temporary Strings
|
||||
|
||||
+ (NSString*) localizedStringWithFormat: (NSString*) format, ...
|
||||
{
|
||||
[self notImplemented:_cmd];
|
||||
return self;
|
||||
}
|
||||
|
||||
+ (NSString*) string
|
||||
{
|
||||
return [[[self alloc] init] autorelease];
|
||||
|
@ -253,12 +247,6 @@ handle_printf_atsign (FILE *stream,
|
|||
initWithContentsOfFile: path] autorelease];
|
||||
}
|
||||
|
||||
+ (NSString*) stringWithCString: (const char*) byteString
|
||||
{
|
||||
return [[[self alloc] initWithCString:byteString]
|
||||
autorelease];
|
||||
}
|
||||
|
||||
+ (NSString*) stringWithFormat: (NSString*)format,...
|
||||
{
|
||||
va_list ap;
|
||||
|
@ -673,27 +661,27 @@ handle_printf_atsign (FILE *stream,
|
|||
|
||||
strFirstCharacter = [aString characterAtIndex:0];
|
||||
|
||||
for (;;)
|
||||
{
|
||||
unsigned int i = 1;
|
||||
unichar myCharacter = [self characterAtIndex:myIndex];
|
||||
unichar strCharacter = strFirstCharacter;
|
||||
for (;;)
|
||||
{
|
||||
unsigned int i = 1;
|
||||
unichar myCharacter = [self characterAtIndex:myIndex];
|
||||
unichar strCharacter = strFirstCharacter;
|
||||
|
||||
for (;;)
|
||||
{
|
||||
if ((myCharacter != strCharacter) &&
|
||||
((uni_tolower (myCharacter) != uni_tolower (strCharacter))))
|
||||
break;
|
||||
if (i == strLength)
|
||||
return (NSRange){myIndex, strLength};
|
||||
myCharacter = [self characterAtIndex:myIndex + i];
|
||||
strCharacter = [aString characterAtIndex:i];
|
||||
i++;
|
||||
}
|
||||
if (myIndex == myEndIndex)
|
||||
break;
|
||||
myIndex ++;
|
||||
}
|
||||
for (;;)
|
||||
{
|
||||
if ((myCharacter != strCharacter) &&
|
||||
((uni_tolower (myCharacter) != uni_tolower (strCharacter))))
|
||||
break;
|
||||
if (i == strLength)
|
||||
return (NSRange){myIndex, strLength};
|
||||
myCharacter = [self characterAtIndex:myIndex + i];
|
||||
strCharacter = [aString characterAtIndex:i];
|
||||
i++;
|
||||
}
|
||||
if (myIndex == myEndIndex)
|
||||
break;
|
||||
myIndex ++;
|
||||
}
|
||||
return (NSRange){0, 0};
|
||||
}
|
||||
|
||||
|
@ -1462,14 +1450,6 @@ else
|
|||
#endif
|
||||
}
|
||||
|
||||
- (BOOL) writeToFile: (NSString*)filename
|
||||
atomically: (BOOL)useAuxiliaryFile
|
||||
{
|
||||
[self notImplemented:_cmd];
|
||||
return NO;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Getting C Strings
|
||||
|
||||
|
|
Loading…
Reference in a new issue