From e14efd7dae588700f957427592ee9a7d5ba43ed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maria=20G=C3=B3rska-Piszek?= Date: Thu, 5 Aug 2021 17:53:18 +0200 Subject: [PATCH] Cleanup unused functions and files. --- includes/admin/class-wc-admin-addons.php | 7 ------- includes/admin/class-wc-admin-menus.php | 11 ++--------- .../admin/helper/views/html-section-nav.php | 19 ------------------- 3 files changed, 2 insertions(+), 35 deletions(-) delete mode 100644 includes/admin/helper/views/html-section-nav.php diff --git a/includes/admin/class-wc-admin-addons.php b/includes/admin/class-wc-admin-addons.php index 7f360f7da50..1f3775e956a 100644 --- a/includes/admin/class-wc-admin-addons.php +++ b/includes/admin/class-wc-admin-addons.php @@ -730,13 +730,6 @@ class WC_Admin_Addons { include_once dirname( __FILE__ ) . '/views/html-admin-page-addons.php'; } - /** - * Outputs the WooCommerce.com Subscriptions page separately - */ - public static function helper_output() { - do_action( 'woocommerce_helper_output' ); - } - /** * Install WooCommerce Services from Extensions screens. */ diff --git a/includes/admin/class-wc-admin-menus.php b/includes/admin/class-wc-admin-menus.php index 1e7e07fbd77..24eef409627 100644 --- a/includes/admin/class-wc-admin-menus.php +++ b/includes/admin/class-wc-admin-menus.php @@ -151,8 +151,8 @@ class WC_Admin_Menus { $count_html = WC_Helper_Updater::get_updates_count_html(); /* translators: %s: extensions count */ $menu_title = sprintf( __( 'My Subscriptions %s', 'woocommerce' ), $count_html ); - add_submenu_page( 'woocommerce', __( 'Marketplace', 'woocommerce' ), __( 'Marketplace', 'woocommerce' ), 'manage_woocommerce', 'wc-addons', array( $this, 'addons_page' ) ); - add_submenu_page( 'woocommerce', __( 'WooCommerce.com Subscriptions', 'woocommerce' ), $menu_title, 'manage_woocommerce', 'wc-addons§ion=helper', array( $this, 'helper_page' ) ); + add_submenu_page( 'woocommerce', __( 'WooCommerce extensions', 'woocommerce' ), __( 'Marketplace', 'woocommerce' ), 'manage_woocommerce', 'wc-addons', array( $this, 'addons_page' ) ); + add_submenu_page( 'woocommerce', __( 'My WooCommerce.com Subscriptions', 'woocommerce' ), $menu_title, 'manage_woocommerce', 'wc-addons§ion=helper', array( $this, 'addons_page' ) ); } /** @@ -296,13 +296,6 @@ class WC_Admin_Menus { WC_Admin_Addons::output(); } - /** - * Init the helper page. - */ - public function helper_page() { - WC_Admin_Addons::helper_output(); - } - /** * Add custom nav meta box. * diff --git a/includes/admin/helper/views/html-section-nav.php b/includes/admin/helper/views/html-section-nav.php deleted file mode 100644 index 9af76fe32a0..00000000000 --- a/includes/admin/helper/views/html-section-nav.php +++ /dev/null @@ -1,19 +0,0 @@ - - -