remove vendor/nim-nat-traversal
and fix/hide some warnings
This commit is contained in:
parent
c6a1e3d453
commit
150f38b87d
|
@ -4,9 +4,6 @@
|
||||||
[submodule "vendor/nimbus-build-system"]
|
[submodule "vendor/nimbus-build-system"]
|
||||||
path = vendor/nimbus-build-system
|
path = vendor/nimbus-build-system
|
||||||
url = https://github.com/status-im/nimbus-build-system.git
|
url = https://github.com/status-im/nimbus-build-system.git
|
||||||
[submodule "vendor/nim-nat-traversal"]
|
|
||||||
path = vendor/nim-nat-traversal
|
|
||||||
url = https://github.com/status-im/nim-nat-traversal.git
|
|
||||||
[submodule "vendor/nim-stew"]
|
[submodule "vendor/nim-stew"]
|
||||||
path = vendor/nim-stew
|
path = vendor/nim-stew
|
||||||
url = https://github.com/status-im/nim-stew.git
|
url = https://github.com/status-im/nim-stew.git
|
||||||
|
|
|
@ -33,3 +33,11 @@ else:
|
||||||
switch("passL", "-Wl,-as-needed")
|
switch("passL", "-Wl,-as-needed")
|
||||||
|
|
||||||
--define:chronicles_line_numbers # useful when debugging
|
--define:chronicles_line_numbers # useful when debugging
|
||||||
|
|
||||||
|
# The compiler doth protest too much, methinks, about all these cases where it can't
|
||||||
|
# do its (N)RVO pass: https://github.com/nim-lang/RFCs/issues/230
|
||||||
|
switch("warning", "ObservableStores:off")
|
||||||
|
|
||||||
|
# Too many false positives for "Warning: method has lock level <unknown>, but another method has 0 [LockLevel]"
|
||||||
|
switch("warning", "LockLevel:off")
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
import NimQml, Tables
|
import NimQml, Tables,
|
||||||
import ../../../status/chat/[chat, message]
|
../../../status/[chat/chat, status, ens]
|
||||||
import ../../../status/chat as status_chat
|
|
||||||
import ../../../status/status
|
|
||||||
import ../../../status/ens
|
|
||||||
|
|
||||||
type
|
type
|
||||||
ChatMemberRoles {.pure.} = enum
|
ChatMemberRoles {.pure.} = enum
|
||||||
|
@ -20,7 +17,7 @@ QtObject:
|
||||||
|
|
||||||
proc setup(self: ChatMembersView) = self.QAbstractListModel.setup
|
proc setup(self: ChatMembersView) = self.QAbstractListModel.setup
|
||||||
|
|
||||||
proc delete(self: ChatMembersView) =
|
proc delete(self: ChatMembersView) =
|
||||||
self.members = @[]
|
self.members = @[]
|
||||||
self.QAbstractListModel.delete
|
self.QAbstractListModel.delete
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import NimQml
|
import NimQml
|
||||||
import Tables
|
import Tables
|
||||||
import strformat
|
|
||||||
import ../../../status/profile/profile
|
import ../../../status/profile/profile
|
||||||
from ../../../status/ens import nil
|
from ../../../status/ens import nil
|
||||||
|
|
||||||
|
@ -18,14 +17,14 @@ QtObject:
|
||||||
|
|
||||||
proc setup(self: ContactList) = self.QAbstractListModel.setup
|
proc setup(self: ContactList) = self.QAbstractListModel.setup
|
||||||
|
|
||||||
proc delete(self: ContactList) =
|
proc delete(self: ContactList) =
|
||||||
self.contacts = @[]
|
self.contacts = @[]
|
||||||
self.QAbstractListModel.delete
|
self.QAbstractListModel.delete
|
||||||
|
|
||||||
proc newContactList*(): ContactList =
|
proc newContactList*(): ContactList =
|
||||||
new(result, delete)
|
new(result, delete)
|
||||||
# TODO: (rramos) contacts should be a table[string, Profile] instead, with the key being the public key
|
# TODO: (rramos) contacts should be a table[string, Profile] instead, with the key being the public key
|
||||||
# This is to optimize determining if a contact is part of the contact list or not
|
# This is to optimize determining if a contact is part of the contact list or not
|
||||||
# (including those that do not have a system tag)
|
# (including those that do not have a system tag)
|
||||||
result.contacts = @[]
|
result.contacts = @[]
|
||||||
result.setup
|
result.setup
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import NimQml
|
import NimQml
|
||||||
import Tables
|
import Tables
|
||||||
import ../../../status/profile/[profile, mailserver]
|
import ../../../status/profile/mailserver
|
||||||
|
|
||||||
type
|
type
|
||||||
MailServerRoles {.pure.} = enum
|
MailServerRoles {.pure.} = enum
|
||||||
|
@ -13,7 +13,7 @@ QtObject:
|
||||||
|
|
||||||
proc setup(self: MailServersList) = self.QAbstractListModel.setup
|
proc setup(self: MailServersList) = self.QAbstractListModel.setup
|
||||||
|
|
||||||
proc delete(self: MailServersList) =
|
proc delete(self: MailServersList) =
|
||||||
self.mailservers = @[]
|
self.mailservers = @[]
|
||||||
self.QAbstractListModel.delete
|
self.QAbstractListModel.delete
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import sequtils, strformat, sugar, chronicles, typeinfo, macros, tables
|
import sequtils, strformat, sugar, macros, tables
|
||||||
import ./utils as status_utils
|
|
||||||
import eth/common/eth_types, stew/byteutils, nimcrypto
|
import eth/common/eth_types, stew/byteutils, nimcrypto
|
||||||
from eth/common/utils import parseAddress
|
from eth/common/utils import parseAddress
|
||||||
|
|
||||||
|
@ -12,7 +11,7 @@ type Method = object
|
||||||
name: string
|
name: string
|
||||||
signature: string
|
signature: string
|
||||||
noPadding: bool
|
noPadding: bool
|
||||||
|
|
||||||
type Contract* = ref object
|
type Contract* = ref object
|
||||||
name*: string
|
name*: string
|
||||||
network*: Network
|
network*: Network
|
||||||
|
|
|
@ -74,7 +74,7 @@ type AccountArgs* = ref object of Args
|
||||||
account*: Account
|
account*: Account
|
||||||
|
|
||||||
type
|
type
|
||||||
StatusGoException* = object of Exception
|
StatusGoException* = object of CatchableError
|
||||||
|
|
||||||
type
|
type
|
||||||
Transaction* = ref object
|
Transaction* = ref object
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 2403c33929c74f2d150f50dc8bc3a598af70661a
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit ae49e03af6f36393eb7e0fc02c1c47df42efd2de
|
Subproject commit 767c8e0fb433da5276c4ac3e61b3360e003536a7
|
Loading…
Reference in New Issue