summaryrefslogtreecommitdiff
path: root/extension/react-app/src/redux/selectors
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-08-06 22:51:10 -0700
committerNate Sesti <sestinj@gmail.com>2023-08-06 22:51:10 -0700
commit6bce4b2802d06818f33b260ca4353331ea4b2df9 (patch)
tree1aafefb3645707b8fdebe5d8acee7c94eebda041 /extension/react-app/src/redux/selectors
parentf96eecb0a531eaef86a503c216882f196ed9299e (diff)
downloadsncontinue-6bce4b2802d06818f33b260ca4353331ea4b2df9.tar.gz
sncontinue-6bce4b2802d06818f33b260ca4353331ea4b2df9.tar.bz2
sncontinue-6bce4b2802d06818f33b260ca4353331ea4b2df9.zip
refactor: :recycle: hoist FullState up to redux
Diffstat (limited to 'extension/react-app/src/redux/selectors')
-rw-r--r--extension/react-app/src/redux/selectors/debugContextSelectors.ts29
1 files changed, 0 insertions, 29 deletions
diff --git a/extension/react-app/src/redux/selectors/debugContextSelectors.ts b/extension/react-app/src/redux/selectors/debugContextSelectors.ts
deleted file mode 100644
index 89201bb7..00000000
--- a/extension/react-app/src/redux/selectors/debugContextSelectors.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-import { RootStore } from "../store";
-
-const selectDebugContext = (state: RootStore) => {
- return {
- ...state.debugState.debugContext,
- rangesInFiles: state.debugState.debugContext.rangesInFiles.filter(
- (_, index) => state.debugState.rangesMask[index]
- ),
- };
-};
-
-const selectAllRangesInFiles = (state: RootStore) => {
- return state.debugState.debugContext.rangesInFiles;
-};
-
-const selectRangesMask = (state: RootStore) => {
- return state.debugState.rangesMask;
-};
-
-const selectDebugContextValue = (state: RootStore, key: string) => {
- return (state.debugState.debugContext as any)[key];
-};
-
-export {
- selectDebugContext,
- selectDebugContextValue,
- selectAllRangesInFiles,
- selectRangesMask,
-};