commit fb65493963a129adf9c1cf53b887ed8dac19b1ce
parent ffbd0ccecd719c37c7f7182c4a8c47fe7a449390
Author: SomberNight <somber.night@protonmail.com>
Date: Fri, 30 Mar 2018 22:31:29 +0200
remove unused variable
Diffstat:
3 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/plugins/keepkey/plugin.py b/plugins/keepkey/plugin.py
@@ -1,5 +1,3 @@
-import threading
-
from binascii import hexlify, unhexlify
from electrum.util import bfh, bh2u
@@ -72,8 +70,6 @@ class KeepKeyCompatiblePlugin(HW_PluginBase):
def __init__(self, parent, config, name):
HW_PluginBase.__init__(self, parent, config, name)
- self.main_thread = threading.current_thread()
- # FIXME: move to base class when Ledger is fixed
if self.libraries_available:
self.device_manager().register_devices(self.DEVICE_IDS)
diff --git a/plugins/ledger/ledger.py b/plugins/ledger/ledger.py
@@ -573,7 +573,6 @@ class LedgerPlugin(HW_PluginBase):
def get_client(self, keystore, force_pair=True):
# All client interaction should not be in the main GUI thread
- #assert self.main_thread != threading.current_thread()
devmgr = self.device_manager()
handler = keystore.handler
with devmgr.hid_lock:
diff --git a/plugins/trezor/trezor.py b/plugins/trezor/trezor.py
@@ -1,5 +1,3 @@
-import threading
-
from binascii import hexlify, unhexlify
from electrum.util import bfh, bh2u, versiontuple
@@ -93,7 +91,6 @@ class TrezorPlugin(HW_PluginBase):
def __init__(self, parent, config, name):
HW_PluginBase.__init__(self, parent, config, name)
- self.main_thread = threading.current_thread()
try:
# Minimal test if python-trezor is installed