From a4eec40843e0ce8624fc64c8a1c30358c76b82b7 Mon Sep 17 00:00:00 2001 From: Jeff Teunissen Date: Tue, 28 Sep 2010 15:49:54 -0400 Subject: [PATCH] Remove -read:/-write from Storage Apparently GS doesn't do TypedStream any more... --- tools/Forge/Bundles/MapEdit/Storage.h | 3 --- tools/Forge/Bundles/MapEdit/Storage.m | 27 --------------------------- 2 files changed, 30 deletions(-) diff --git a/tools/Forge/Bundles/MapEdit/Storage.h b/tools/Forge/Bundles/MapEdit/Storage.h index 45a6b236c..9e9936c81 100644 --- a/tools/Forge/Bundles/MapEdit/Storage.h +++ b/tools/Forge/Bundles/MapEdit/Storage.h @@ -65,10 +65,7 @@ -removeElementAt:(NSUInteger) index; -/* Archiving */ --write:(TypedStream *) stream; --read:(TypedStream *) stream; /* old-style creation */ diff --git a/tools/Forge/Bundles/MapEdit/Storage.m b/tools/Forge/Bundles/MapEdit/Storage.m index 4e19fa65d..b586f07f3 100644 --- a/tools/Forge/Bundles/MapEdit/Storage.m +++ b/tools/Forge/Bundles/MapEdit/Storage.m @@ -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];