Browse Source

remove function in wrong place

Oz Nahum 12 năm trước cách đây
mục cha
commit
187ef1d761
1 tập tin đã thay đổi với 0 bổ sung21 xóa
  1. 0 21
      pwman/ui/cli.py

+ 0 - 21
pwman/ui/cli.py

@@ -213,27 +213,6 @@ class PwmanCli(cmd.Cmd):
             print "%s " % (t.get_name()),
         print
 
-        def heardEnter():
-            i,o,e = select.select([sys.stdin],[],[],0.0001)
-            for s in i:
-                if s == sys.stdin:
-                    input = sys.stdin.readline()
-                return True
-            return False
-        
-        def waituntil_enter(somepredicate,timeout, period=0.25):
-            mustend = time.time() + timeout
-            while time.time() < mustend:
-                if somepredicate():
-                    print 'Will call cls'
-                    self.do_cls("")
-                    break
-                time.sleep(period)
-            return False        
-        #print "Flushing in 5 sec., Enter to flush before, or 'h' to hold".
-        #self.do_cls("")
-        waituntil_enter(heardEnter, 5)        
-
 
     def complete_filter(self, text, line, begidx, endidx):
         strings = []