Remove objectAtIndex: from strings

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7453 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2000-09-08 18:04:51 +00:00
parent 0f11471fdf
commit e1e2a71b1d
3 changed files with 5 additions and 19 deletions

View file

@ -558,12 +558,6 @@ static IMP msInitImp; /* designated initialiser for mutable */
return NO;
}
- (id) objectAtIndex: (unsigned)index
{
CHECK_INDEX_RANGE_ERROR(index, _count);
return [NSNumber numberWithChar: _contents_chars[index]];
}
- (int) _baseLength
{
return _count;

View file

@ -388,14 +388,6 @@
}
}
// FOR IndexedCollection SUPPORT;
- objectAtIndex: (unsigned)index
{
CHECK_INDEX_RANGE_ERROR(index, _count);
return [NSNumber numberWithChar: unitochar(_contents_chars[index])];
}
- (id) propertyList
{
id result;

View file

@ -528,7 +528,7 @@ handle_printf_atsign (FILE *stream,
*atsign_pos = '\0';
/* Print the part before the '%@' */
printed_local_len = VASPRINTF_LENGTH (vasprintf (&buf_l,
format_to_go, arg_list));
format_to_go, arg_list));
if(buf_l)
{
if(avail_len < printed_local_len+1)
@ -536,7 +536,7 @@ handle_printf_atsign (FILE *stream,
NS_DURING
{
buf = NSZoneRealloc(z, buf,
printed_len+printed_local_len+_PRINTF_BUF_LEN);
printed_len+printed_local_len+_PRINTF_BUF_LEN);
avail_len += _PRINTF_BUF_LEN;
}
NS_HANDLER
@ -554,7 +554,7 @@ handle_printf_atsign (FILE *stream,
else
{
[NSException raise: NSMallocException
format: @"No available memory"];
format: @"No available memory"];
}
/* Skip arguments used in last vsprintf(). */
while ((formatter_pos = strchr(format_to_go, '%')))
@ -621,7 +621,7 @@ handle_printf_atsign (FILE *stream,
}
/* Print the rest of the string after the last `%@'. */
printed_local_len = VASPRINTF_LENGTH (vasprintf (&buf_l,
format_to_go, arg_list));
format_to_go, arg_list));
if(buf_l)
{
if(avail_len < printed_local_len+1)
@ -629,7 +629,7 @@ handle_printf_atsign (FILE *stream,
NS_DURING
{
buf = NSZoneRealloc(z, buf,
printed_len+printed_local_len+_PRINTF_BUF_LEN);
printed_len+printed_local_len+_PRINTF_BUF_LEN);
avail_len += _PRINTF_BUF_LEN;
}
NS_HANDLER