Remove old code which is not used anymore
This commit is contained in:
parent
a7fc05fcd3
commit
03472b6a8e
|
@ -516,15 +516,6 @@ if (faucets.length > 0) {
|
|||
status.command(faucetCommandConfig);
|
||||
}
|
||||
|
||||
status.response({
|
||||
name: "grant-permissions",
|
||||
scope: ["personal-chats", "anonymous", "registered", "dapps"],
|
||||
color: "#7099e6",
|
||||
description: "Grant permissions",
|
||||
icon: "lock_white",
|
||||
executeImmediately: true
|
||||
});
|
||||
|
||||
status.addListener("on-message-input-change", function (params, context) {
|
||||
return jsSuggestions({code: params.message}, context);
|
||||
});
|
||||
|
|
|
@ -83,19 +83,9 @@
|
|||
(shortcuts/shortcut-override-fx db message opts)
|
||||
(request-command-message-data db message opts))))
|
||||
|
||||
(handlers/register-handler-fx
|
||||
:execute-command-immediately
|
||||
[re-frame/trim-v]
|
||||
(fn [_ [{command-name :name}]]
|
||||
(case (keyword command-name)
|
||||
:grant-permissions
|
||||
{:dispatch [:request-permissions {:permissions [:read-external-storage]
|
||||
:on-allowed #(re-frame/dispatch [:initialize-geth])}]}
|
||||
(log/debug "ignoring command: " command-name))))
|
||||
|
||||
;; NOTE(goranjovic) - continues execution of a command that was paused by a shortcut
|
||||
(defn execute-stored-command [{:keys [db]}]
|
||||
(let [{:keys [message opts]} (:commands/stored-command db)]
|
||||
(-> db
|
||||
(request-command-message-data message opts)
|
||||
(dissoc :commands/stored-command))))
|
||||
(dissoc :commands/stored-command))))
|
||||
|
|
|
@ -95,7 +95,6 @@
|
|||
network-mismatch? (and request-network (not= request-network network))
|
||||
on-press-handler (cond
|
||||
network-mismatch? nil
|
||||
(:execute-immediately? command) #(dispatch [:execute-command-immediately command])
|
||||
(and (not answered?) status-initialized?) #(set-chat-command message-id command))]
|
||||
[view
|
||||
[touchable-highlight
|
||||
|
|
Loading…
Reference in New Issue