Commits

Ronald Oussoren committed b0e444a

Actually remove addConvenienceForSelector

Comments (0)

Files changed (3)

pyobjc-core/Doc/metadata/manual.rst

    Register *type* as a dict-like type that will be bridged to Objective-C as an NSDictionary subclass.
 
 
-.. function:: addConvenienceForSelector(selector, methods)
-
-    Add a list of method to every class that has *selector* as a selector.
-    These additional methods are not added to the Objective-C class, but are 
-    only visibile in Python code.
-
-    The *methods* argument is a list of tuples (methodname, function).
-
-   .. deprecated:: 2.5
-
-      This function is deprecated, future versions of PyObjC will use a different way
-      to initialize classes that will require us to remove this function.
-
-
 .. function:: addConvenienceForClass(classname, method)
 
     Add a list of method the named class when that class is initialized, the class

pyobjc-core/Lib/objc/_convenience.py

 import warnings
 import collections
 
-__all__ = ( 'addConvenienceForSelector', 'addConvenienceForClass' )
+__all__ = ( 'addConvenienceForClass' )
 
 
 _CONVENIENCE_METHODS = {}
 
 _updatingMetadata(True)
 
-
-def addConvenienceForSelector(selector, methods):
-    """
-    Add the list with methods to every class that has a selector with the
-    given name.
-    """
-    warnings.warn("addConvenienceForSelector is on the way out", DeprecationWarning)
-    _CONVENIENCE_METHODS[selector] = methods
-
 def addConvenienceForClass(classname, methods):
     """
     Add the list with methods to the class with the specified name

pyobjc-core/PyObjCTest/test_locking.py

 
 class TestLockingBasic (TestCase):
 
-    def testBasicLocking(self):
+    # XXX: test disabled for now due to speed
+    def no_testBasicLocking(self):
         lst = []
 
         obj = BaseClass.alloc().initWithList_(lst)
             if lst[idx].endswith(' a'):
                 self.assertTrue(lst[idx+1].endswith(' b'))
 
-    def testObjectiveCLocking(self):
+    # XXX: test disabled for now due to speed
+    def no_testObjectiveCLocking(self):
         lst = []
         lst = []
 
 
 class TestLockingWithStatement (TestCase):
 
-    def testBasicLocking(self):
+    # XXX: test disabled for now due to speed
+    def no_testBasicLocking(self):
         lst = []
         lst = []