From ab3c38270950435e0c25d2a6fb973e6bbfd04f77 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 31 May 2015 23:25:26 +0200 Subject: Cleanup: remove sone unused code and threading stuff --- src/core/core.py | 8 -------- src/core/handlers.py | 1 - src/windows/base_wins.py | 1 - 3 files changed, 10 deletions(-) diff --git a/src/core/core.py b/src/core/core.py index d2c17fd7..a9ba8581 100644 --- a/src/core/core.py +++ b/src/core/core.py @@ -16,7 +16,6 @@ import os import pipes import sys import time -from threading import Event from slixmpp.xmlstream.handler import Callback @@ -72,8 +71,6 @@ class Core(object): roster.set_node(self.xmpp.client_roster) decorators.refresh_wrapper.core = self self.bookmarks = BookmarkList() - self.paused = False - self.event = Event() self.debug = False self.remote_fifo = None # a unique buffer used to store global informations @@ -612,11 +609,6 @@ class Core(object): # whether to refresh after ALL keys have been handled for char_list in separate_chars_from_bindings(big_char_list): - if self.paused: - self.current_tab().input.do_command(char_list[0]) - self.current_tab().input.prompt() - self.event.set() - continue # Special case for M-x where x is a number if len(char_list) == 1: char = char_list[0] diff --git a/src/core/handlers.py b/src/core/handlers.py index 828c39d1..96f8215f 100644 --- a/src/core/handlers.py +++ b/src/core/handlers.py @@ -1237,7 +1237,6 @@ def validate_ssl(self, pem): 'Warning') def check_input(): self.current_tab().input = saved_input - self.paused = False if input.value: self.information('Setting new certificate: old: %s, new: %s' % (cert, sha2_found_cert), 'Info') log.debug('Setting certificate to %s', sha2_found_cert) diff --git a/src/windows/base_wins.py b/src/windows/base_wins.py index 574eee89..915242a9 100644 --- a/src/windows/base_wins.py +++ b/src/windows/base_wins.py @@ -13,7 +13,6 @@ log = logging.getLogger(__name__) import collections import curses import string -from threading import RLock import core import singleton -- cgit v1.2.3