# HG changeset patch # User Thinker K.F. Li # Date 1294109416 -28800 # Node ID 96ca8a1cf4493861ccbaec2e245a356850b952b2 # Parent 489e6e474fdff8a13d85972e4aa5b05fc2cc1246 Remove unused classes diff -r 489e6e474fdf -r 96ca8a1cf449 pyink/MBScene.py --- a/pyink/MBScene.py Tue Jan 04 10:43:18 2011 +0800 +++ b/pyink/MBScene.py Tue Jan 04 10:50:16 2011 +0800 @@ -49,22 +49,6 @@ pass pass -class Scene: - def __init__(self, node, start,end,typ): - self.node = node - self.start = int(start) - self.end = int(end) - self.type = typ - pass - pass -class DOM(pybInkscape.PYSPObject): - def __init__(self,obj=None): - self.proxy = obj - pass - - def duplicate(self,doc): - return DOM(self.repr.duplicate(doc)) - class ObjectWatcher(pybInkscape.PYNodeObserver): def __init__(self,obj,type,func,arg): self.obj = obj @@ -94,49 +78,6 @@ _scenes = '{http://madbutterfly.sourceforge.net/DTD/madbutterfly.dtd}scenes' _scene = '{http://madbutterfly.sourceforge.net/DTD/madbutterfly.dtd}scene' -class LayerAttributeWatcher(pybInkscape.PYNodeObserver): - def __init__(self,ui): - self.ui = ui - def notifyChildAdded(self,node,child,prev): - pass - - def notifyChildRemoved(self,node,child,prev): - pass - - def notifyChildOrderChanged(self,node,child,prev): - pass - - def notifyContentChanged(self,node,old_content,new_content): - pass - - def notifyAttributeChanged(self,node, name, old_value, new_value): - self.ui.updateUI() - pass - -class LayerAddRemoveWatcher(pybInkscape.PYNodeObserver): - def __init__(self,ui): - self.ui = ui - pass - - def notifyChildAdded(self,node,child,prev): - self.ui.updateUI() - pass - - def notifyChildRemoved(self,node,child,prev): - self.ui.updateUI() - pass - - def notifyChildOrderChanged(self,node,child,prev): - self.ui.updateUI() - pass - - def notifyContentChanged(self,node,old_content,new_content): - self.ui.updateUI() - pass - - def notifyAttributeChanged(self,node, name, old_value, new_value): - self.ui.updateUI() - pass def _travel_DOM(node): nodes = [node]