mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Remove -read:/-write from Storage
Apparently GS doesn't do TypedStream any more...
This commit is contained in:
parent
ec0c37ee82
commit
77e6624de3
2 changed files with 0 additions and 30 deletions
|
@ -65,10 +65,7 @@
|
|||
|
||||
-removeElementAt:(NSUInteger) index;
|
||||
|
||||
/* Archiving */
|
||||
|
||||
-write:(TypedStream *) stream;
|
||||
-read:(TypedStream *) stream;
|
||||
|
||||
/* old-style creation */
|
||||
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue