Remove -read:/-write from Storage

Apparently GS doesn't do TypedStream any more...
This commit is contained in:
Jeff Teunissen 2010-09-28 15:49:54 -04:00
parent ec0c37ee82
commit 77e6624de3
2 changed files with 0 additions and 30 deletions

View File

@ -65,10 +65,7 @@
-removeElementAt:(NSUInteger) index;
/* Archiving */
-write:(TypedStream *) stream;
-read:(TypedStream *) stream;
/* old-style creation */

View File

@ -235,33 +235,6 @@ index with:(void *) newElement
return self;
}
/* Archiving */
-write:(TypedStream *) aStream
{
NSUInteger i;
[super write:aStream];
objc_write_types (aStream, "III*",
&numElements, &maxElements, &elementSize, &description);
for (i = 0; i < numElements; i++)
objc_write_type (aStream, description, STORAGE_NTH (i));
return self;
}
-read:(TypedStream *) aStream
{
NSUInteger i;
[super read:aStream];
objc_read_types (aStream, "III*",
&numElements, &maxElements, &elementSize, &description);
dataPtr = (void *) objc_malloc (maxElements * elementSize);
for (i = 0; i < numElements; i++)
objc_read_type (aStream, description, STORAGE_NTH (i));
return self;
}
+new
{
return[[self alloc] init];