Skip to content

Commit 465b028

Browse files
committed
refactor: remove unused code
1 parent 58b4578 commit 465b028

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/Campaigns/Actions/LoadCampaignOptions.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ public function __invoke()
3232
version_compare((string)get_option('give_version_upgraded_from', '4.0.0'), '4.0.0', '<'),
3333
'showCampaignListTableNotice' => !get_user_meta(get_current_user_id(), 'givewp_campaign_listtable_notice', true),
3434
'showCampaignFormNotice' => !get_user_meta(get_current_user_id(), 'givewp_campaign_form_notice', true),
35-
'showCampaignSettingsNotice' => !get_user_meta(get_current_user_id(), 'givewp_campaign_settings_notice', true),
36-
'orphanedForms' => give_get_option('give_campaign_orphaned_forms')
35+
'showCampaignSettingsNotice' => !get_user_meta(get_current_user_id(), 'givewp_campaign_settings_notice', true)
3736
]
3837
: null,
3938
]

src/Campaigns/resources/types.ts

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ export type GiveCampaignOptions = {
4545
showCampaignListTableNotice: boolean
4646
showCampaignFormNotice: boolean
4747
showCampaignSettingsNotice: boolean
48-
orphanedForms?: []
4948
}
5049
}
5150

0 commit comments

Comments
 (0)