remove a few obsolete, unused methods

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29785 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-02-27 06:53:43 +00:00
parent a0a018b4c5
commit 8aadd12c71
3 changed files with 0 additions and 66 deletions

View file

@ -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

View file

@ -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.<br />
* 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.<br />
* 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

View file

@ -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.<br />
* 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.<br />
* Provides a return frame that the ObjectiveC runtime can use to