Remove dead code

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31434 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2010-09-28 23:27:46 +00:00
parent 42828af0cc
commit 4eba67f87b
2 changed files with 6 additions and 35 deletions

View file

@ -1,3 +1,9 @@
2010-09-28 Eric Wasylishen <ewasylishen@gmail.com>
* Source/GSFFIInvocation.m: Remove dead code
(gs_find_by_receiver_best_typed_sel was static inline and never
called anywhere)
2010-09-28 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSString.m: implement lowercaseString and uppercaseString

View file

@ -113,41 +113,6 @@ gs_find_best_typed_sel (SEL sel)
return sel;
}
/*
* Take the receiver into account for finding the best
* selector. That is, we look if the receiver
* implements the selector and the implementation
* selector has type info. If both conditions
* are satisfied, return this selector.
*
* In all other cases fallback
* to gs_find_best_typed_sel ().
*/
static INLINE SEL
gs_find_by_receiver_best_typed_sel (id receiver, SEL sel)
{
// FIXME: libobjc2 contains a much more sane way of doing this
if (sel_getType_np(sel))
return sel;
if (receiver)
{
GSMethod method;
method = gs_method_for_receiver_and_selector (receiver, sel);
/* CHECKME: Can we assume that:
(a) method_name is a selector (compare libobjc header files)
(b) this selector IS really typed?
At the moment I assume (a) but not (b)
not assuming (b) is the reason for
calling gs_find_best_typed_sel () even
if we have an implementation.
*/
if (method)
sel = method_getName(method);
}
return gs_find_best_typed_sel (sel);
}
@implementation GSFFIInvocation