Author: rfm
Date: Wed Mar  9 14:24:44 2016
New Revision: 39494

URL: http://svn.gna.org/viewcvs/gnustep?rev=39494&view=rev
Log:
remove some unused code

Modified:
    libs/base/trunk/Source/GSFFIInvocation.m
    libs/base/trunk/Source/NSString.m
    libs/base/trunk/Source/NSZone.m

Modified: libs/base/trunk/Source/GSFFIInvocation.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/GSFFIInvocation.m?rev=39494&r1=39493&r2=39494&view=diff
==============================================================================
--- libs/base/trunk/Source/GSFFIInvocation.m    (original)
+++ libs/base/trunk/Source/GSFFIInvocation.m    Wed Mar  9 14:24:44 2016
@@ -57,29 +57,6 @@
 typedef void (*f_fun) ();
 
 static void GSFFIInvocationCallback(ffi_cif*, void*, void **, void*);
-
-/*
- * If we are using the GNU ObjC runtime we could simplify this
- * function quite a lot because this function is already present in
- * the ObjC runtime.  However, it is not part of the public API, so we
- * work around it.
- */
-
-GS_STATIC_INLINE GSMethod
-gs_method_for_receiver_and_selector (id receiver, SEL sel)
-{
-  if (receiver)
-    {
-      return GSGetMethod((GSObjCIsInstance(receiver)
-                          ? object_getClass(receiver) : (Class)receiver),
-                         sel,
-                         GSObjCIsInstance(receiver),
-                         YES);
-    }
-
-  return 0;
-}
-
 
 /* This routine should return a typed selector corresponding to the
    name of the specified selector.  If there is only one type, then we

Modified: libs/base/trunk/Source/NSString.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/NSString.m?rev=39494&r1=39493&r2=39494&view=diff
==============================================================================
--- libs/base/trunk/Source/NSString.m   (original)
+++ libs/base/trunk/Source/NSString.m   Wed Mar  9 14:24:44 2016
@@ -494,14 +494,6 @@
   return root;
 }
 
-
-/* Convert a high-low surrogate pair into Unicode scalar code-poNSInteger*/
-static inline uint32_t
-surrogatePairValue(unichar high, unichar low)
-{
-  return ((high - (unichar)0xD800) * (unichar)400)
-    + ((low - (unichar)0xDC00) + (unichar)10000);
-}
 
 @implementation NSString
 //  NSString itself is an abstract class which provides factory

Modified: libs/base/trunk/Source/NSZone.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/NSZone.m?rev=39494&r1=39493&r2=39494&view=diff
==============================================================================
--- libs/base/trunk/Source/NSZone.m     (original)
+++ libs/base/trunk/Source/NSZone.m     Wed Mar  9 14:24:44 2016
@@ -718,12 +718,6 @@
 chunkSize(ff_block* ptr)
 {
   return ptr->size & ~SIZE_BITS;
-}
-
-static inline void
-chunkClrInUse(ff_block* ptr)
-{
-  ptr->size &= ~INUSE;
 }
 
 static inline size_t


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to