changeset 1201:582d3410e546

Remove unused functions
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 03 Jan 2011 13:57:00 +0800
parents 213f03dbfc41
children 2f3d523a3871
files pyink/MBScene.py
diffstat 1 files changed, 0 insertions(+), 31 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/MBScene.py	Mon Jan 03 13:51:31 2011 +0800
+++ b/pyink/MBScene.py	Mon Jan 03 13:57:00 2011 +0800
@@ -572,13 +572,6 @@
 		pass
 	    pass
 	pass
-
-    def getLayer(self, layer):
-	for l in self.layers:
-	    if l.group.getAttribute('id') == layer:
-		return l
-	    pass
-	return None
     pass
 
 class MBScene(MBScene_dom):
@@ -627,15 +620,6 @@
 	    pass
 	pass
 
-    def confirm(self,msg):
-	vbox = gtk.VBox()
-	vbox.pack_start(gtk.Label(msg))
-	self.button = gtk.Button('OK')
-	vbox.pack_start(self.button)
-	self.button.connect("clicked", self.onQuit)
-	self.window.add(vbox)
-	pass
-    
     def removeKeyScene(self, frameline, frame_idx):
 	start, end, scene_type = frameline.get_frame_block(frame_idx)
 	scene_node = frameline.get_frame_data(start)
@@ -1056,13 +1040,6 @@
 	self.current = self.current + 1
         self.last_update = glib.timeout_add(1000/self.framerate,self.doRunNext)
 
-    def doInsertScene(self,w):
-	self._lockui=True
-	self.last_line.insert_frame(self.last_frame)
-	self.update_scenes_of_dom()
-	self._lockui=False
-	pass
-
     def addButtons(self,hbox):
 	btn = gtk.Button('Insert Key')
 	btn.connect('clicked',self.doInsertKeyScene)
@@ -1080,14 +1057,6 @@
 	btn.connect('clicked', self.doDuplicateKeyScene)
 	hbox.pack_start(btn,expand=False,fill=False)
 
-	btn=gtk.Button('Insert')
-	btn.connect('clicked', self.doInsertScene)
-	hbox.pack_start(btn,expand=False,fill=False)
-
-	btn=gtk.Button('Remove')
-	btn.connect('clicked', self.doRemoveScene)
-	hbox.pack_start(btn,expand=False,fill=False)
-
 	btn=gtk.Button('Run')
 	btn.connect('clicked', self.doRun)
 	self.btnRun = btn