changeset 1268:cd848c2ec29f

Remove unused code. - Keep code base as clean as possible before commiting it. - Keep clean is a rule that should be followed anytime/anywhere. - Since we have VCS, don't leave anything that is no more used for the regret at later.
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 12 Jan 2011 20:52:34 +0800
parents 2318a094a277
children 97302d2a0a1d
files pyink/MBScene.py pyink/consistency.py
diffstat 2 files changed, 0 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/MBScene.py	Wed Jan 12 20:42:31 2011 +0800
+++ b/pyink/MBScene.py	Wed Jan 12 20:52:34 2011 +0800
@@ -196,15 +196,6 @@
 	self.tweenTypeSelector.connect('changed', self.do_TweenTypeChange)
 	pass
     
-    def lock(self):
-        self._domviewui.lock()
-	pass
-
-    def unlock(self):
-        self._domviewui.unlock()
-	pass
-
-    
     def do_changeObjectLabel(self,w):
 	o = self.desktop.selection.list()[0]
 	o.setAttribute("inkscape:label", self.nameEditor.get_text())
@@ -289,18 +280,14 @@
 	pass
 
     def doInsertFrame(self, w):
-	self.lockui=True
 	layer_idx, frame_idx = self._domviewui.get_active_layer_frame()
 	self._domviewui.insert_frames(layer_idx, frame_idx, 1)
 	self.markUndo("insert frame")
-	self.lockui=False
 
     def doRemoveFrame(self, w):
-        self.lockui=True
 	layer_idx, frame_idx = self._domviewui.get_active_layer_frame()
 	self._domviewui.rm_frames(layer_idx, frame_idx, 1)
 	self.markUndo("remove frame")
-	self.lockui=False
 
     def do_TweenTypeChange(self, w):
 	if self._disable_tween_type_selector:
--- a/pyink/consistency.py	Wed Jan 12 20:42:31 2011 +0800
+++ b/pyink/consistency.py	Wed Jan 12 20:52:34 2011 +0800
@@ -144,11 +144,3 @@
 	    pass
         pass
     pass
-
-    def lock(self):
-        self._domview.lock()
-	pass
-
-    def unlock(self):
-        self._domview.unlock()
-	pass