Remove old code which is not used anymore

This commit is contained in:
janherich 2018-06-28 17:00:56 +02:00
parent a7fc05fcd3
commit 03472b6a8e
No known key found for this signature in database
GPG Key ID: C23B473AFBE94D13
3 changed files with 1 additions and 21 deletions

View File

@ -516,15 +516,6 @@ if (faucets.length > 0) {
status.command(faucetCommandConfig); 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) { status.addListener("on-message-input-change", function (params, context) {
return jsSuggestions({code: params.message}, context); return jsSuggestions({code: params.message}, context);
}); });

View File

@ -83,19 +83,9 @@
(shortcuts/shortcut-override-fx db message opts) (shortcuts/shortcut-override-fx db message opts)
(request-command-message-data 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 ;; NOTE(goranjovic) - continues execution of a command that was paused by a shortcut
(defn execute-stored-command [{:keys [db]}] (defn execute-stored-command [{:keys [db]}]
(let [{:keys [message opts]} (:commands/stored-command db)] (let [{:keys [message opts]} (:commands/stored-command db)]
(-> db (-> db
(request-command-message-data message opts) (request-command-message-data message opts)
(dissoc :commands/stored-command)))) (dissoc :commands/stored-command))))

View File

@ -95,7 +95,6 @@
network-mismatch? (and request-network (not= request-network network)) network-mismatch? (and request-network (not= request-network network))
on-press-handler (cond on-press-handler (cond
network-mismatch? nil network-mismatch? nil
(:execute-immediately? command) #(dispatch [:execute-command-immediately command])
(and (not answered?) status-initialized?) #(set-chat-command message-id command))] (and (not answered?) status-initialized?) #(set-chat-command message-id command))]
[view [view
[touchable-highlight [touchable-highlight