From c8e679b7e06965c3985994dd64d95af370e0f488 Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Fri, 18 Mar 2022 03:13:20 +0530 Subject: [PATCH] chore: cleanup --- renderer/providers/Store/actions.js | 2 -- renderer/providers/Store/reducer.js | 12 ------------ 2 files changed, 14 deletions(-) diff --git a/renderer/providers/Store/actions.js b/renderer/providers/Store/actions.js index 17ded3a4e..7579a0fdc 100644 --- a/renderer/providers/Store/actions.js +++ b/renderer/providers/Store/actions.js @@ -2,7 +2,6 @@ const SIDEBAR_COLLECTION_ITEM_CLICK = "SIDEBAR_COLLECTION_ITEM_CLICK"; const SIDEBAR_COLLECTION_NEW_FOLDER = "SIDEBAR_COLLECTION_NEW_FOLDER"; const SIDEBAR_COLLECTION_NEW_REQUEST = "SIDEBAR_COLLECTION_NEW_REQUEST"; const LOAD_COLLECTIONS_FROM_IDB = "LOAD_COLLECTIONS_FROM_IDB"; -const COLLECTION_CREATE = "COLLECTION_CREATE"; const REQUEST_TAB_CLICK = "REQUEST_TAB_CLICK"; const REQUEST_TAB_CLOSE = "REQUEST_TAB_CLOSE"; const REQUEST_URL_CHANGED = "REQUEST_URL_CHANGED"; @@ -23,7 +22,6 @@ export default { SIDEBAR_COLLECTION_NEW_FOLDER, SIDEBAR_COLLECTION_NEW_REQUEST, LOAD_COLLECTIONS_FROM_IDB, - COLLECTION_CREATE, REQUEST_TAB_CLICK, REQUEST_TAB_CLOSE, REQUEST_URL_CHANGED, diff --git a/renderer/providers/Store/reducer.js b/renderer/providers/Store/reducer.js index 37e7342b4..d2c3eb88e 100644 --- a/renderer/providers/Store/reducer.js +++ b/renderer/providers/Store/reducer.js @@ -122,18 +122,6 @@ const reducer = (state, action) => { }); } - case actions.COLLECTION_CREATE: { - return produce(state, (draft) => { - // todo: collection names must be unique across a user account - draft.collections = draft.collections || []; - draft.collections.push({ - uid: nanoid(), - name: action.name, - items: [] - }); - }); - } - case actions.REQUEST_TAB_CLICK: { return produce(state, (draft) => { draft.activeRequestTabUid = action.requestTab.uid;