From f73fbe3204b0e2a41e5b2418a30b758176f732ac Mon Sep 17 00:00:00 2001 From: Andrei Smirnov Date: Tue, 20 Jul 2021 12:46:20 +0300 Subject: [PATCH] chore(@desktop): nim compilation warnings - unused imports --- src/app/chat/views/category_item.nim | 2 +- src/app/chat/views/communities.nim | 2 +- src/app/profile/views/muted_chats.nim | 7 +------ src/app/profile/views/profile_settings.nim | 2 -- src/status/contacts.nim | 3 --- src/status/libstatus/eth/methods.nim | 2 +- src/status/mailservers.nim | 3 --- src/status/types.nim | 2 ++ 8 files changed, 6 insertions(+), 17 deletions(-) diff --git a/src/app/chat/views/category_item.nim b/src/app/chat/views/category_item.nim index 659caf296e..b43f022585 100644 --- a/src/app/chat/views/category_item.nim +++ b/src/app/chat/views/category_item.nim @@ -1,4 +1,4 @@ -import NimQml, Tables, std/wrapnils +import NimQml, std/wrapnils import ../../../status/chat/chat QtObject: diff --git a/src/app/chat/views/communities.nim b/src/app/chat/views/communities.nim index a404912721..0f66f68348 100644 --- a/src/app/chat/views/communities.nim +++ b/src/app/chat/views/communities.nim @@ -1,4 +1,4 @@ -import NimQml, json, sequtils, chronicles, strutils, strformat, tables +import NimQml, json, sequtils, chronicles, strutils, strformat import ../../../status/status import ../../../status/chat/chat import ./channels_list diff --git a/src/app/profile/views/muted_chats.nim b/src/app/profile/views/muted_chats.nim index 955f4a4502..c9b09fb9e0 100644 --- a/src/app/profile/views/muted_chats.nim +++ b/src/app/profile/views/muted_chats.nim @@ -1,15 +1,10 @@ -import NimQml, sequtils, strutils, sugar, os, json, chronicles +import NimQml, sequtils, strutils, json, chronicles import chronicles import ../../chat/views/channels_list -import ../../../status/profile/profile import ../../../status/profile as status_profile import ../../../status/contacts as status_contacts import ../../../status/status -import ../../../status/ens as status_ens import ../../../status/chat/chat -import ../../../status/types -import ../../../status/constants as accountConstants -import ../../utils/image_utils logScope: topics = "muted-chats-view" diff --git a/src/app/profile/views/profile_settings.nim b/src/app/profile/views/profile_settings.nim index bc5e5d2def..a944250e4b 100644 --- a/src/app/profile/views/profile_settings.nim +++ b/src/app/profile/views/profile_settings.nim @@ -1,9 +1,7 @@ import NimQml, os import chronicles import profile_info -import ../../../status/profile/profile import ../../../status/status -import ../../../status/types import ../../../status/constants as accountConstants logScope: diff --git a/src/status/contacts.nim b/src/status/contacts.nim index f515a52e11..744bd3e552 100644 --- a/src/status/contacts.nim +++ b/src/status/contacts.nim @@ -2,9 +2,6 @@ import json, sequtils, sugar, chronicles import libstatus/contacts as status_contacts import libstatus/accounts as status_accounts import libstatus/chat as status_chat -import utils as status_utils -import chat/chat -#import chat/utils import profile/profile import ../eventemitter diff --git a/src/status/libstatus/eth/methods.nim b/src/status/libstatus/eth/methods.nim index 2452423f77..58c2b18ae7 100644 --- a/src/status/libstatus/eth/methods.nim +++ b/src/status/libstatus/eth/methods.nim @@ -5,7 +5,7 @@ import nimcrypto, web3/[encoding, ethtypes] import - ../coder, eth, transactions, ../../types # FIXME: 'types' produces a compiler warning, but doesn't compiler without it 🤷‍♂️ + ../../types, ../coder, eth, transactions export sendTransaction diff --git a/src/status/mailservers.nim b/src/status/mailservers.nim index ff214da565..42fbfb4d10 100644 --- a/src/status/mailservers.nim +++ b/src/status/mailservers.nim @@ -3,9 +3,6 @@ import json import libstatus/mailservers as status_mailservers import ../eventemitter -#TODO: temporary? -import types as LibStatusTypes - type MailserversModel* = ref object events*: EventEmitter diff --git a/src/status/types.nim b/src/status/types.nim index c88b9376b7..0dfb714dcc 100644 --- a/src/status/types.nim +++ b/src/status/types.nim @@ -1,3 +1,5 @@ +{.used.} + import json, options, typetraits, tables, sequtils, strutils import web3/ethtypes, json_serialization, stint import libstatus/accounts/constants