Revision: 4297
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4297&view=rev
Author:   hofman
Date:     2008-07-24 23:28:21 +0000 (Thu, 24 Jul 2008)

Log Message:
-----------
remove unused functions

Modified Paths:
--------------
    trunk/SKRuntime.h
    trunk/SKRuntime.m

Modified: trunk/SKRuntime.h
===================================================================
--- trunk/SKRuntime.h   2008-07-24 18:49:48 UTC (rev 4296)
+++ trunk/SKRuntime.h   2008-07-24 23:28:21 UTC (rev 4297)
@@ -42,12 +42,7 @@
 
 extern Class SK_object_getClass(id object);
 
-extern SEL SK_method_getName(Method aMethod);
 extern IMP SK_method_getImplementation(Method aMethod);
 extern const char *SK_method_getTypeEncoding(Method aMethod);
-extern IMP SK_method_setImplementation(Method aMethod, IMP anImp);
-extern void SK_method_exchangeImplementations(Method aMethod1, Method 
aMethod2);
 
-extern Class SK_class_getSuperclass(Class aClass);
-extern void SK_class_addMethod(Class aClass, SEL selector, IMP methodImp, 
const char *methodTypes);
 extern IMP SK_class_replaceMethod(Class aClass, SEL selector, IMP methodImp, 
const char *methodTypes);

Modified: trunk/SKRuntime.m
===================================================================
--- trunk/SKRuntime.m   2008-07-24 18:49:48 UTC (rev 4296)
+++ trunk/SKRuntime.m   2008-07-24 23:28:21 UTC (rev 4297)
@@ -49,10 +49,6 @@
     return object_getClass != NULL ? object_getClass(object) : object->isa;
 }
 
-SEL SK_method_getName(Method aMethod) {
-    return method_getName != NULL ? method_getName(aMethod) : 
aMethod->method_name;
-}
-
 IMP SK_method_getImplementation(Method aMethod) {
     return method_getImplementation != NULL ? 
method_getImplementation(aMethod) : aMethod->method_imp;
 } 
@@ -61,30 +57,6 @@
     return method_getTypeEncoding != NULL ? method_getTypeEncoding(aMethod) : 
aMethod->method_types;
 }
 
-IMP SK_method_setImplementation(Method aMethod, IMP anImp) {
-    if (method_setImplementation != NULL) {
-        return method_setImplementation(aMethod, anImp);
-    } else {
-        IMP oldImp = aMethod->method_imp;
-        aMethod->method_imp = anImp;
-        return oldImp;
-    }
-} 
-
-void SK_method_exchangeImplementations(Method aMethod1, Method aMethod2) {
-    if (method_exchangeImplementations != NULL) {
-        method_exchangeImplementations(aMethod1, aMethod2);
-    } else {
-        IMP imp = aMethod1->method_imp;
-        aMethod1->method_imp = aMethod2->method_imp;
-        aMethod2->method_imp = imp;
-    }
-}
-
-Class SK_class_getSuperclass(Class aClass) {
-    return class_getSuperclass != NULL ? class_getSuperclass(aClass) : 
aClass->super_class;
-}
-
 // generic implementation for SK_class_addMethod/SK_class_replaceMethod, but 
only for old API, modeled after actual runtime implementation of 
_class_addMethod
 static inline IMP _SK_class_addMethod(Class aClass, SEL selector, IMP 
methodImp, const char *methodTypes, BOOL replace) {
     IMP imp = NULL;
@@ -121,13 +93,6 @@
     return imp;
 }
 
-void SK_class_addMethod(Class aClass, SEL selector, IMP methodImp, const char 
*methodTypes) {
-    if (class_addMethod != NULL)
-        class_addMethod(aClass, selector, methodImp, methodTypes);
-    else
-        _SK_class_addMethod(aClass, selector, methodImp, methodTypes, NO);
-}
-
 IMP SK_class_replaceMethod(Class aClass, SEL selector, IMP methodImp, const 
char *methodTypes) {
     if (class_replaceMethod != NULL)
         return class_replaceMethod(aClass, selector, methodImp, methodTypes);
@@ -143,10 +108,6 @@
     return object_getClass(object);
 }
 
-SEL SK_method_getName(Method aMethod) {
-    return method_getName(aMethod);
-}
-
 IMP SK_method_getImplementation(Method aMethod) {
     return method_getImplementation(aMethod);
 } 
@@ -155,22 +116,6 @@
     return method_getTypeEncoding(aMethod);
 }
 
-IMP SK_method_setImplementation(Method aMethod, IMP anImp) {
-    return method_setImplementation(aMethod, anImp);
-} 
-
-void SK_method_exchangeImplementations(Method aMethod1, Method aMethod2) {
-    method_exchangeImplementations(aMethod1, aMethod2);
-}
-
-Class SK_class_getSuperclass(Class aClass) {
-    return class_getSuperclass(aClass);
-}
-
-void SK_class_addMethod(Class aClass, SEL selector, IMP methodImp, const char 
*methodTypes) {
-    class_addMethod(aClass, selector, methodImp, methodTypes);
-}
-
 IMP SK_class_replaceMethod(Class aClass, SEL selector, IMP methodImp, const 
char *methodTypes) {
     return class_replaceMethod(aClass, selector, methodImp, methodTypes);
 }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to