Browse Source

removing unused function delete() from controls

Josh Wilson 19 years ago
parent
commit
26e87e17a3
2 changed files with 0 additions and 9 deletions
  1. 0 2
      direct/src/controls/ControlManager.py
  2. 0 7
      direct/src/controls/GravityWalker.py

+ 0 - 2
direct/src/controls/ControlManager.py

@@ -109,7 +109,6 @@ class ControlManager:
             print "Removing controls:", name
             oldControls.disableAvatarControls()
             oldControls.setCollisionsActive(0)
-            oldControls.delete()
 
     if __debug__:
         def lockControls(self):
@@ -158,7 +157,6 @@ class ControlManager:
                 forwardSpeed, jumpForce, reverseSpeed, rotateSpeed)
 
     def delete(self):
-        import pdb;pdb.set_trace()
         assert self.notify.debugCall(id(self))
         self.disable()
         for controls in self.controls.keys():

+ 0 - 7
direct/src/controls/GravityWalker.py

@@ -65,13 +65,6 @@ class GravityWalker(DirectObject.DirectObject):
         self.isAirborne = 0
         self.highMark = 0
 
-    def delete(self):
-        assert self.notify.debugStateCall(self)
-        if self.doLaterTask is not None:
-            self.doLaterTask.remove()
-            del self.doLaterTask
-        #DirectObject.DirectObject.delete(self)
-
     """
     def spawnTest(self):
         assert self.notify.debugStateCall(self)