From 1a495aaf1f0495b6a3932f0a5522e9ced2707d71 Mon Sep 17 00:00:00 2001 From: Sapayth Hossain Date: Mon, 28 Oct 2024 21:48:54 +0600 Subject: [PATCH] remove unused class --- includes/Integrations.php | 10 +++--- includes/Integrations/The_Events_Calendar.php | 35 ------------------- 2 files changed, 4 insertions(+), 41 deletions(-) delete mode 100644 includes/Integrations/The_Events_Calendar.php diff --git a/includes/Integrations.php b/includes/Integrations.php index d2d4df476..0dac85879 100644 --- a/includes/Integrations.php +++ b/includes/Integrations.php @@ -18,12 +18,10 @@ class Integrations { public $container = []; private $integrations = [ - 'WeDevs_Dokan' => 'WPUF_Dokan_Integration', - 'WC_Vendors' => 'WPUF_WC_Vendors_Integration', - 'WCMp' => 'WPUF_WCMp_Integration', - 'ACF' => 'WPUF_ACF_Compatibility', - 'Tribe__Events__Main' => 'The_Events_Calendar', - 'Tribe__Events__Pro__Main' => 'The_Events_Calendar', + 'WeDevs_Dokan' => 'WPUF_Dokan_Integration', + 'WC_Vendors' => 'WPUF_WC_Vendors_Integration', + 'WCMp' => 'WPUF_WCMp_Integration', + 'ACF' => 'WPUF_ACF_Compatibility', ]; public function __construct() { diff --git a/includes/Integrations/The_Events_Calendar.php b/includes/Integrations/The_Events_Calendar.php deleted file mode 100644 index 8042d50b4..000000000 --- a/includes/Integrations/The_Events_Calendar.php +++ /dev/null @@ -1,35 +0,0 @@ - '', - 'all_day' => true, - ]; - - $args = wp_parse_args( $args, $default ); - - if ( function_exists( 'tribe_update_event' ) ) { - tribe_update_event( $post_id, $args ); - } - } - } -}