From f441f83b162d8d581898b07b8e5e006fb0d59a74 Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Fri, 13 Dec 2019 13:48:05 -0330 Subject: [PATCH] Remove unused feature-toggle-utils file (#7703) --- ui/lib/feature-toggle-utils.js | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 ui/lib/feature-toggle-utils.js diff --git a/ui/lib/feature-toggle-utils.js b/ui/lib/feature-toggle-utils.js deleted file mode 100644 index ed0844d2e..000000000 --- a/ui/lib/feature-toggle-utils.js +++ /dev/null @@ -1,11 +0,0 @@ -function checkFeatureToggle (name) { - const queryPairMap = window.location.search.substr(1).split('&') - .map(pair => pair.split('=')) - .reduce((pairs, [key, value]) => ({ ...pairs, [key]: value }), {}) - const featureToggles = queryPairMap['ft'] ? queryPairMap['ft'].split(',') : [] - return Boolean(featureToggles.find(ft => ft === name)) -} - -module.exports = { - checkFeatureToggle, -}