Browse Source

cleanup dead code

283
ThomasV 10 years ago
parent
commit
56dc9f7f80
  1. 7
      gui/qt/lite_window.py
  2. 12
      lib/util.py

7
gui/qt/lite_window.py

@ -13,7 +13,6 @@ except ImportError:
sys.exit(0)
from decimal import Decimal as D
from electrum.util import get_resource_path as rsrc
from electrum.bitcoin import is_valid
from electrum.i18n import _
import decimal
@ -867,9 +866,3 @@ class MiniDriver(QObject):
self.window.update_history(tx_history)
if __name__ == "__main__":
app = QApplication(sys.argv)
with open(rsrc("style.css")) as style_file:
app.setStyleSheet(style_file.read())
mini = MiniWindow()
sys.exit(app.exec_())

12
lib/util.py

@ -63,18 +63,6 @@ def user_dir():
def get_resource_path(*args):
return os.path.join(".", *args)
def local_data_dir():
"""Return path to the data folder."""
assert sys.argv
prefix_path = os.path.dirname(sys.argv[0])
local_data = os.path.join(prefix_path, "data")
return local_data
def format_satoshis(x, is_diff=False, num_zeros = 0, decimal_point = 8, whitespaces=False):
from decimal import Decimal
s = Decimal(x)

Loading…
Cancel
Save