From 543d28fbc1c1c4d13947ee9b5d9a7374b4c8260c Mon Sep 17 00:00:00 2001 From: yenda Date: Sun, 15 Sep 2019 21:23:25 +0200 Subject: [PATCH] remove unused deleteChat rpc method and effects --- src/status_im/data_store/chats.cljs | 14 -------------- src/status_im/ethereum/json_rpc.cljs | 1 + 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/status_im/data_store/chats.cljs b/src/status_im/data_store/chats.cljs index e22325ae9c..f34651b1ea 100644 --- a/src/status_im/data_store/chats.cljs +++ b/src/status_im/data_store/chats.cljs @@ -156,17 +156,3 @@ :params [] :on-success #(on-success (map <-rpc %)) :on-failure #(log/error "failed to fetch chats" 0 -1 %)}]}) - -(defn delete-chat-rpc [chat-id chat-type] - (json-rpc/call {:method "shhext_deleteChat" - :params [chat-id chat-type] - :on-success #(log/debug "deleteed chat" chat-id chat-type) - :on-failure #(log/error "failed to delete chat" chat-id chat-type %)})) - -(re-frame/reg-fx - ::delete-chat - (fn [[chat-id chat-type]] - (delete-chat-rpc chat-id chat-type))) - -(fx/defn delete-chat [cofx chat-id chat-type] - {::delete-chat [chat-id chat-type]}) diff --git a/src/status_im/ethereum/json_rpc.cljs b/src/status_im/ethereum/json_rpc.cljs index 42e334c8d2..d5f6dec89d 100644 --- a/src/status_im/ethereum/json_rpc.cljs +++ b/src/status_im/ethereum/json_rpc.cljs @@ -52,6 +52,7 @@ "shhext_saveChat" {} "shhext_contacts" {} "shhext_blockContact" {} + ;;TODO not used anywhere? "shhext_deleteChat" {} "shhext_saveContact" {} "status_joinPublicChat" {}