From a2eeb6e7b5c52b18c2ec324b9841e48498abf768 Mon Sep 17 00:00:00 2001 From: Keith Grant Date: Fri, 13 Mar 2020 11:38:49 -0700 Subject: [PATCH] delete unused file --- .../src/screens/Template/shared/surveyReducer.js | 15 --------------- awx/ui_next/src/util/useRequest.js | 1 - 2 files changed, 16 deletions(-) delete mode 100644 awx/ui_next/src/screens/Template/shared/surveyReducer.js diff --git a/awx/ui_next/src/screens/Template/shared/surveyReducer.js b/awx/ui_next/src/screens/Template/shared/surveyReducer.js deleted file mode 100644 index 418792a1e4..0000000000 --- a/awx/ui_next/src/screens/Template/shared/surveyReducer.js +++ /dev/null @@ -1,15 +0,0 @@ -export default function surveyReducer(state, action) { - switch (action.type) { - case 'THING': - return state; - default: - throw new Error(`Unrecognized action type: ${action.type}`); - } -} - -// move up/down -> Update -// delete -> Update -// delete all -> destroySurvey -// toggle -> Update survey_enabled -// select -// select all diff --git a/awx/ui_next/src/util/useRequest.js b/awx/ui_next/src/util/useRequest.js index 6c06cc0a34..a5a3e8556d 100644 --- a/awx/ui_next/src/util/useRequest.js +++ b/awx/ui_next/src/util/useRequest.js @@ -14,7 +14,6 @@ import { * isLoading: boolean state indicating whether the request is in active/in flight * error: any caught error resulting from the request * setValue: setter to explicitly set the result value - * isInitialized: set to true once the result is initially fetched * * The hook also accepts an optional second parameter which is a default * value to set as result before the first time the request is made.