From 7b6dc0e3a3f7818ec9bbce4331804ac943287e78 Mon Sep 17 00:00:00 2001 From: niranjan-uma-shankar Date: Wed, 16 Oct 2024 18:10:42 +0530 Subject: [PATCH] Remove unused code (#95311) --- client/signup/config/flows-pure.js | 3 --- client/signup/flow-actions.ts | 8 -------- 2 files changed, 11 deletions(-) delete mode 100644 client/signup/flow-actions.ts diff --git a/client/signup/config/flows-pure.js b/client/signup/config/flows-pure.js index 7dc2fca8e0f66..859028ca8b3dc 100644 --- a/client/signup/config/flows-pure.js +++ b/client/signup/config/flows-pure.js @@ -1,7 +1,6 @@ import { isEnabled } from '@automattic/calypso-config'; import { HOSTING_LP_FLOW, ONBOARDING_FLOW, ONBOARDING_GUIDED_FLOW } from '@automattic/onboarding'; import { translate } from 'i18n-calypso'; -import { onEnterOnboarding } from '../flow-actions'; const noop = () => {}; @@ -175,7 +174,6 @@ export function generateFlows( { providesDependenciesInQuery: [ 'coupon' ], optionalDependenciesInQuery: [ 'coupon' ], hideProgressIndicator: true, - onEnterFlow: onEnterOnboarding, }, { name: ONBOARDING_FLOW, @@ -187,7 +185,6 @@ export function generateFlows( { providesDependenciesInQuery: [ 'coupon' ], optionalDependenciesInQuery: [ 'coupon' ], hideProgressIndicator: true, - onEnterFlow: onEnterOnboarding, }, { name: 'plans-first', diff --git a/client/signup/flow-actions.ts b/client/signup/flow-actions.ts deleted file mode 100644 index b20bb27a00a7b..0000000000000 --- a/client/signup/flow-actions.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { loadExperimentAssignment } from 'calypso/lib/explat'; - -export const onEnterOnboarding = ( flowName: string ) => { - // just to be extra safe since `loadExperimentAssignment` doesn't have the same eligibility check like `useExperiment` does - if ( flowName === 'onboarding' ) { - loadExperimentAssignment( 'calypso_signup_onboarding_deemphasize_free_plan' ); - } -};