From a7aae3556f37a3746f0330193cfe19bd646a1148 Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Wed, 13 Oct 1999 08:28:45 +0000 Subject: [PATCH] Tidied coder stuff to avoid cross-refs in connections git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@5008 72102866-910b-0410-8b05-ffd578937521 --- Source/ConnectedCoder.m | 28 ---------------------------- Source/Encoder.m | 4 ---- Source/NSPortCoder.m | 28 ---------------------------- 3 files changed, 60 deletions(-) diff --git a/Source/ConnectedCoder.m b/Source/ConnectedCoder.m index 9b29f5902..5ca796fc4 100644 --- a/Source/ConnectedCoder.m +++ b/Source/ConnectedCoder.m @@ -109,20 +109,6 @@ static BOOL debug_connected_coder = NO; return sequence_number; } - -/* Cache the const ptr's in the Connection, not separately for each - created ConnectedCoder. */ - -- (unsigned) _coderReferenceForConstPtr: (const void*)ptr -{ - return 0; -} - -- (unsigned) _coderCreateReferenceForConstPtr: (const void*)ptr -{ - return 0; -} - /* This is called by Coder's designated object encoder */ - (void) _doEncodeObject: anObj @@ -216,20 +202,6 @@ static BOOL debug_connected_coder = NO; } - -/* Cache the const ptr's in the Connection, not separately for each - created ConnectedCoder. */ - -- (unsigned) _coderCreateReferenceForConstPtr: (const void*)ptr -{ - return 0; -} - -- (const void*) _coderConstPtrAtReference: (unsigned)xref -{ - return 0; -} - #if CONNECTION_WIDE_OBJECT_REFERENCES diff --git a/Source/Encoder.m b/Source/Encoder.m index 7e3e89c3e..2b42196f9 100644 --- a/Source/Encoder.m +++ b/Source/Encoder.m @@ -233,10 +233,6 @@ my_object_is_class(id object) /* These _coder... methods may be overriden by subclasses so that cross-references can be kept differently. - - For instance, ConnectedCoder keeps cross-references to const - pointers on a per-Connection basis instead of a per-Coder basis. - We avoid encoding/decoding the same classes and selectors over and over again. */ - (unsigned) _coderCreateReferenceForObject: anObj diff --git a/Source/NSPortCoder.m b/Source/NSPortCoder.m index 5f2e7eee8..183559336 100644 --- a/Source/NSPortCoder.m +++ b/Source/NSPortCoder.m @@ -156,20 +156,6 @@ static BOOL debug_connected_coder = NO; return sequence_number; } - -/* Cache the const ptr's in the Connection, not separately for each - created PortCoder. */ - -- (unsigned) _coderReferenceForConstPtr: (const void*)ptr -{ -return 0; -} - -- (unsigned) _coderCreateReferenceForConstPtr: (const void*)ptr -{ -return 0; -} - /* * These three methods are called by Coder's designated object encoder when @@ -335,20 +321,6 @@ return 0; return cd; } - -/* Cache the const ptr's in the Connection, not separately for each - created PortCoder. */ - -- (unsigned) _coderCreateReferenceForConstPtr: (const void*)ptr -{ - return 0; -} - -- (const void*) _coderConstPtrAtReference: (unsigned)xref -{ - return 0; -} - /* Access to ivars. */