Skip to content

Commit f2c1ede

Browse files
committed
un-clutter the API and make tests work again (sincere apologies to Claudio)
1 parent 0e9e95f commit f2c1ede

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

cocos/cocosnode.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -337,26 +337,6 @@ def get_ancestor(self, klass):
337337
if parent:
338338
return parent.get_ancestor( klass )
339339

340-
@property
341-
def scene(self):
342-
'''Get the Scene this cocosnode (eventually) belongs to.
343-
344-
Is None if there is no Scene ancestor.
345-
'''
346-
# late import to avoid circular reference
347-
from cocos import scene
348-
return self.get_ancestor(scene.Scene)
349-
350-
@property
351-
def layer(self):
352-
'''Get the Layer this cocosnode (eventually) belongs to.
353-
354-
Is None if there is no Layer ancestor.
355-
'''
356-
# late import to avoid circular reference
357-
from cocos import layer
358-
return self.get_ancestor(layer.Layer)
359-
360340
#
361341
# Transform properties
362342
#

0 commit comments

Comments
 (0)