remove some old panda support

This commit is contained in:
David Rose 2008-08-08 00:13:59 +00:00
parent 39f5de7827
commit 7fdd1813ac
3 changed files with 2 additions and 12 deletions

View File

@ -1120,10 +1120,6 @@ class Actor(DirectObject, NodePath):
optimal than controlJoint() for cases in which the transform optimal than controlJoint() for cases in which the transform
is not intended to be animated during the lifetime of the is not intended to be animated during the lifetime of the
Actor. """ Actor. """
# Temporary condition for old Pandas.
if not hasattr(PartBundle, 'controlJoint'):
return
if transform == None: if transform == None:
transform = TransformState.makePosHprScale(pos, hpr, scale) transform = TransformState.makePosHprScale(pos, hpr, scale)

View File

@ -144,11 +144,7 @@ class DirectEntry(DirectFrame):
DirectFrame.destroy(self) DirectFrame.destroy(self)
def setup(self): def setup(self):
# Temporary condition for old pandas. self.guiItem.setupMinimal(self['width'], self['numLines'])
if hasattr(self.guiItem, 'setupMinimal'):
self.guiItem.setupMinimal(self['width'], self['numLines'])
else:
self.guiItem.setup(self['width'], self['numLines'])
def setFocus(self): def setFocus(self):
PGEntry.setFocus(self.guiItem, self['focus']) PGEntry.setFocus(self.guiItem, self['focus'])

View File

@ -51,9 +51,7 @@ class Loader(DirectObject):
def destroy(self): def destroy(self):
self.ignore(self.hook) self.ignore(self.hook)
# Temp condition for old Panda. self.loader.stopThreads()
if hasattr(self.loader, "stopThreads"):
self.loader.stopThreads()
del self.base del self.base
del self.loader del self.loader