Skip to content

Commit 116365b

Browse files
flexsurferyevh-berdnyk
authored andcommitted
remove obsolete code (#18094)
1 parent 91f0d77 commit 116365b

File tree

17 files changed

+4
-618
lines changed

17 files changed

+4
-618
lines changed

Diff for: src/status_im/commands/core.cljs

-46
This file was deleted.

Diff for: src/status_im/contact/chat.cljs

-18
This file was deleted.

Diff for: src/status_im/contact/core.cljs

-13
This file was deleted.

Diff for: src/status_im/contact/db.cljs

-9
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,3 @@
8585
(assoc acc public-key (enrich-contact contact profile-pictures-visibility own-public-key)))
8686
{}
8787
contacts))
88-
89-
(defn get-blocked-contacts
90-
[contacts]
91-
(reduce (fn [acc {:keys [public-key] :as contact}]
92-
(if (:blocked? contact)
93-
(conj acc public-key)
94-
acc))
95-
#{}
96-
contacts))

Diff for: src/status_im/events.cljs

-3
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
status-im.chat.models.input
1616
status-im.chat.models.loading
1717
status-im.contact.block
18-
status-im.contact.chat
19-
status-im.contact.core
2018
status-im.currency.core
2119
status-im.ethereum.subscriptions
2220
status-im.fleet.core
@@ -43,7 +41,6 @@
4341
status-im.visibility-status-popover.core
4442
status-im.visibility-status-updates.core
4543
status-im.waku.core
46-
status-im.wallet-connect.core
4744
status-im.wallet.accounts.core
4845
status-im.wallet.choose-recipient.core
4946
[status-im.wallet.core :as wallet]

Diff for: src/status_im/keycard/recovery.cljs

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
[status-im.multiaccounts.model :as multiaccounts.model]
1212
[status-im.popover.core :as popover]
1313
[status-im.utils.deprecated-types :as types]
14-
[status-im.utils.keychain.core :as keychain]
1514
[status-im2.constants :as constants]
1615
[status-im2.navigation.events :as navigation]
1716
[taoensso.timbre :as log]
@@ -278,7 +277,7 @@
278277
{:db (-> db
279278
(assoc-in [:profile/profiles-overview key-uid :keycard-pairing] pairing)
280279
(assoc :profile/login account)
281-
(assoc :auth-method keychain/auth-method-none)
280+
(assoc :auth-method "none")
282281
(update :keycard dissoc :flow :migration-password)
283282
(dissoc :recovered-account?))
284283
::finish-migration [account settings password encryption-pass login-params]}))

Diff for: src/status_im/transport/core.cljs

Whitespace-only changes.

Diff for: src/status_im/ui/screens/wallet/send/views.cljs

+1-44
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
(ns status-im.ui.screens.wallet.send.views
2-
(:require-macros [status-im.utils.views :refer [defview letsubs] :as views])
2+
(:require-macros [status-im.utils.views :as views])
33
(:require
44
[quo.core :as quo]
55
[re-frame.core :as re-frame]
6-
[status-im.commands.core :as commands]
7-
[status-im.ui.components.bottom-panel.views :as bottom-panel]
86
[status-im.ui.components.chat-icon.screen :as chat-icon]
97
[status-im.ui.components.colors :as colors]
108
[status-im.ui.components.core :as components.core]
@@ -129,47 +127,6 @@
129127
" "
130128
(:code wallet-currency))])))
131129

132-
(defn select-account-sheet
133-
[{:keys [from message]}]
134-
[react/view {:style (styles/acc-sheet)}
135-
[header
136-
{:small-screen? false
137-
:label :t/select-account}]
138-
[react/view
139-
{:flex-direction :row
140-
:padding-horizontal 24
141-
:align-items :center
142-
:margin-vertical 16}]
143-
[components.core/list-header
144-
(i18n/label :t/from-capitalized)]
145-
[react/view {:flex-direction :row :flex 1 :align-items :center}
146-
[react/view {:flex 1}
147-
[render-account from nil ::commands/set-selected-account]]]
148-
[toolbar/toolbar
149-
{:left
150-
[react/view {:padding-horizontal 8}
151-
[components.core/button
152-
{:type :secondary
153-
:on-press #(re-frame/dispatch [:set :commands/select-account nil])}
154-
(i18n/label :t/cancel)]]
155-
:right
156-
[components.core/button
157-
{:accessibility-label :select-account-bottom-sheet
158-
:disabled (nil? from)
159-
:on-press #(re-frame/dispatch
160-
[::commands/accept-request-address-for-transaction
161-
(:message-id message)
162-
(:address from)])}
163-
(i18n/label :t/share)]}]])
164-
165-
(defview select-account
166-
[]
167-
(letsubs [data [:commands/select-account]]
168-
[bottom-panel/animated-bottom-panel
169-
data
170-
select-account-sheet
171-
#(re-frame/dispatch [:hide-select-acc-sheet])]))
172-
173130
(views/defview request-transaction
174131
[_]
175132
(views/letsubs [{:keys [amount-error amount-text from token sign-enabled?] :as tx}

Diff for: src/status_im/utils/keychain/core.cljs

-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
[taoensso.timbre :as log]
77
[utils.re-frame :as rf]))
88

9-
(def auth-method-biometric "biometric")
10-
(def auth-method-biometric-prepare "biometric-prepare")
11-
(def auth-method-none "none")
12-
139
(defn- whisper-key-name
1410
[address]
1511
(str address "-whisper"))

Diff for: src/status_im/utils/pairing.cljs

-11
This file was deleted.

Diff for: src/status_im/utils/snoopy.cljs

-120
This file was deleted.

Diff for: src/status_im/utils/wallet_connect.cljs

-31
This file was deleted.

Diff for: src/status_im/wallet/choose_recipient/core.cljs

+1-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
[status-im.ethereum.ens :as ens]
88
[status-im.ethereum.tokens :as tokens]
99
[status-im.qr-scanner.core :as qr-scaner]
10-
[status-im.utils.wallet-connect :as wallet-connect]
1110
[status-im.wallet.utils :as wallet.utils]
1211
[status-im2.common.router :as router]
1312
[status-im2.navigation.events :as navigation]
@@ -173,11 +172,7 @@
173172
(if (links/universal-link? uri)
174173
{:dispatch [:universal-links/handle-url uri]}
175174
{:browser/show-browser-selection uri})
176-
(if (wallet-connect/url? uri)
177-
{:ui/show-error "Wallet Connect not implemented"}
178-
;; Re-enable with https://github.com/status-im/status-mobile/issues/13429
179-
;; {:dispatch [::qr-scaner/handle-wallet-connect-uri {:data uri}]}
180-
{:ui/show-error (i18n/label :t/wallet-invalid-address {:data uri})}))))
175+
{:ui/show-error (i18n/label :t/wallet-invalid-address {:data uri})})))
181176

182177
(rf/defn qr-scanner-result
183178
{:events [:wallet-legacy.send/qr-scanner-result]}

0 commit comments

Comments
 (0)