diff --git a/Headers/Foundation/NSInvocation.h b/Headers/Foundation/NSInvocation.h index 1ec0ba3a1..7ea063552 100644 --- a/Headers/Foundation/NSInvocation.h +++ b/Headers/Foundation/NSInvocation.h @@ -120,7 +120,6 @@ extern "C" { + (NSInvocation*) _returnInvocationAndDestroyProxy: (id)proxy; - (id) initWithArgframe: (arglist_t)frame selector: (SEL)aSelector; - (id) initWithMethodSignature: (NSMethodSignature*)aSignature; -- (id) initWithSelector: (SEL)aSelector; - (void*) returnFrame: (arglist_t)argFrame; @end diff --git a/Source/NSDistantObject.m b/Source/NSDistantObject.m index a945da63b..d7ea43ab0 100644 --- a/Source/NSDistantObject.m +++ b/Source/NSDistantObject.m @@ -42,7 +42,6 @@ @interface NSDistantObject(GNUstepExtensions) - (Class) classForPortCoder; -- (const char *) selectorTypeForProxy: (SEL)selector; - (id) forward: (SEL)aSel :(arglist_t)frame; - (void) finalize; @end @@ -881,24 +880,6 @@ static inline BOOL class_is_kind_of (Class self, Class aClassObject) -/** - * For backward compatibility ... do not use this method.
- * Returns the type information ... the modern way of doing this is - * with the -methodSignatureForSelector: method. - */ -- (const char *) selectorTypeForProxy: (SEL)selector -{ -#if NeXT_RUNTIME - /* This isn't what we want, unless the remote machine has - the same architecture as us. */ - const char *t; - t = [_connection typeForSelector: selector remoteTarget: _handle]; - return t; -#else /* NeXT_runtime */ - return sel_get_type (selector); -#endif -} - /** * For backward compatibility ... do not use this method.
* Handle old fashioned forwarding to the proxy. @@ -973,24 +954,6 @@ static inline BOOL class_is_kind_of (Class self, Class aClassObject) @end -@implementation NSObject (NSDistantObject) -- (const char *) selectorTypeForProxy: (SEL)selector -{ -#if NeXT_runtime - { - Method m = GSGetInstanceMethod(isa, selector); - if (m) - return m->method_types; - else - return NULL; - } -#else - return sel_get_type (selector); -#endif -} - -@end - @implementation Protocol (DistributedObjectsCoding) - (Class) classForPortCoder diff --git a/Source/NSInvocation.m b/Source/NSInvocation.m index c07bb69be..843ceb8f6 100644 --- a/Source/NSInvocation.m +++ b/Source/NSInvocation.m @@ -785,34 +785,6 @@ _arg_addr(NSInvocation *inv, int index) return nil; } -/** - * Tries to produce a method signature based on aSelector and uses that to - * initialise self by calling the -initWithMethodSignature: method.
- * If the argument type of aSelector cannot be determined, this releases self - * and returns nil. - */ -- (id) initWithSelector: (SEL)aSelector -{ - const char *types; - NSMethodSignature *newSig; - - types = sel_get_type(aSelector); - if (types == 0) - { - types - = sel_get_type(sel_get_any_typed_uid(sel_getName(aSelector))); - } - if (types == 0) - { - NSLog(@"Couldn't find encoding type for selector %s.", - sel_getName(aSelector)); - DESTROY(self); - return nil; - } - newSig = [NSMethodSignature signatureWithObjCTypes: types]; - return [self initWithMethodSignature: newSig]; -} - /** * Internal use.
* Provides a return frame that the ObjectiveC runtime can use to