diff options
Diffstat (limited to 'app/assets/javascripts/experimentation/utils.js')
-rw-r--r-- | app/assets/javascripts/experimentation/utils.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/app/assets/javascripts/experimentation/utils.js b/app/assets/javascripts/experimentation/utils.js index 9079c238169..624a04fd7c2 100644 --- a/app/assets/javascripts/experimentation/utils.js +++ b/app/assets/javascripts/experimentation/utils.js @@ -1,5 +1,5 @@ // This file only applies to use of experiments through https://gitlab.com/gitlab-org/gitlab-experiment -import { get, pick } from 'lodash'; +import { get } from 'lodash'; import { DEFAULT_VARIANT, CANDIDATE_VARIANT, TRACKING_CONTEXT_SCHEMA } from './constants'; function getExperimentsData() { @@ -14,12 +14,6 @@ export function getExperimentData(experimentName) { return getExperimentsData()[experimentName]; } -export function getExperimentContexts(...experimentNames) { - return Object.values(pick(getExperimentsData(), experimentNames)).map( - convertExperimentDataToExperimentContext, - ); -} - export function getAllExperimentContexts() { return Object.values(getExperimentsData()).map(convertExperimentDataToExperimentContext); } |