From 15b32ddd5af7d68cb02a428d8ff099ecec748a87 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Thu, 21 May 2020 12:21:20 -0400 Subject: [PATCH] remove lib file --- src/nim_status_client.nim | 2 -- src/status/libstatusqml.nim | 51 ------------------------------------- 2 files changed, 53 deletions(-) delete mode 100644 src/status/libstatusqml.nim diff --git a/src/nim_status_client.nim b/src/nim_status_client.nim index 5ad7dfa05b..79bf959ab8 100644 --- a/src/nim_status_client.nim +++ b/src/nim_status_client.nim @@ -21,7 +21,6 @@ import status/types as types import status/wallet as status_wallet import status/libstatus import state -import status/libstatusqml import status/types import eventemitter import os @@ -75,7 +74,6 @@ proc mainProc() = engine.setRootContextProperty("nodeModel", node.variant) - var onboarding = onboarding.newController(events) onboarding.init() engine.setRootContextProperty("onboardingLogic", onboarding.variant) diff --git a/src/status/libstatusqml.nim b/src/status/libstatusqml.nim deleted file mode 100644 index 86825d7c4a..0000000000 --- a/src/status/libstatusqml.nim +++ /dev/null @@ -1,51 +0,0 @@ -import NimQml -import libstatus -import utils - -QtObject: - type - LibStatusQml* = ref object of QObject - - - # ¯\_(ツ)_/¯ dunno what is this - proc setup(self: LibStatusQml) = - self.QObject.setup - - # ¯\_(ツ)_/¯ seems to be a method for garbage collection - proc delete*(self: LibStatusQml) = - self.QObject.delete - - # Constructor - proc newLibStatusQml*(): LibStatusQml = - new(result, delete) - result.setup - - proc hashMessage*(self: LibStatusQml, p0: string): string {.slot.} = - return $libstatus.hashMessage(p0) - - proc initKeystore*(self: LibStatusQml, keydir: string): string {.slot.} = - return $libstatus.initKeystore(keydir) - - proc openAccounts*(self: LibStatusQml, datadir: string): string {.slot.} = - return $libstatus.openAccounts(datadir) - - proc multiAccountGenerateAndDeriveAddresses*(self: LibStatusQml, paramsJSON: string): string {.slot.} = - return $libstatus.multiAccountGenerateAndDeriveAddresses(paramsJSON) - - proc multiAccountStoreDerivedAccounts*(self: LibStatusQml, paramsJSON: string): string {.slot.} = - return $libstatus.multiAccountStoreDerivedAccounts(paramsJSON) - - proc saveAccountAndLogin*(self: LibStatusQml, accountData: string, password: string, settingsJSON: string, configJSON: string, subaccountData: string): string {.slot.} = - return $libstatus.saveAccountAndLogin(accountData, password, settingsJSON, configJSON, subaccountData) - - proc callRPC*(self: LibStatusQml, inputJSON: string): string {.slot.} = - return $libstatus.callRPC(inputJSON) - - proc callPrivateRPC*(self: LibStatusQml, inputJSON: string): string {.slot.} = - return $libstatus.callPrivateRPC(inputJSON) - - proc addPeer*(self: LibStatusQml, peer: string): string {.slot.} = - return $libstatus.addPeer(peer) - - proc generateAlias*(self: LibStatusQml, p0: string): string {.slot.} = - return $libstatus.generateAlias(p0.toGoString) \ No newline at end of file