From 1f9c956637882972d2023b9d55f0a6a1b80a562a Mon Sep 17 00:00:00 2001 From: Vlad Date: Sat, 9 Dec 2017 19:27:21 -0500 Subject: [PATCH] Removes unused code --- lib/Config/Widget.php | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/lib/Config/Widget.php b/lib/Config/Widget.php index 0cbd4f84b2..a7928dbdaa 100644 --- a/lib/Config/Widget.php +++ b/lib/Config/Widget.php @@ -150,32 +150,4 @@ EOL; true ); } - - // TODO: extract this method into an Initializer - // - the "ajax" part might probably be useless - // - the "post" (non-ajax) part needs to be redone properly - function setupActions() { - // ajax requests - add_action( - 'wp_ajax_mailpoet_form_subscribe', - 'mailpoet_form_subscribe' - ); - add_action( - 'wp_ajax_nopriv_mailpoet_form_subscribe', - 'mailpoet_form_subscribe' - ); - // post request - add_action( - 'admin_post_nopriv_mailpoet_form_subscribe', - 'mailpoet_form_subscribe' - ); - add_action( - 'admin_post_mailpoet_form_subscribe', - 'mailpoet_form_subscribe' - ); - add_action( - 'init', - 'mailpoet_form_subscribe' - ); - } }