From 2b688e8a5e4e002599331ab11d306bea81fe585d Mon Sep 17 00:00:00 2001 From: Almira Krdzic Date: Tue, 27 Nov 2018 11:22:01 +0100 Subject: [PATCH] Remove unused code --- ...class-wiaas-admin-delivery-process-list.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/backend/app/plugins/wiaas/includes/admin/delivery-process/class-wiaas-admin-delivery-process-list.php b/backend/app/plugins/wiaas/includes/admin/delivery-process/class-wiaas-admin-delivery-process-list.php index c7f4bfb..596c8a5 100644 --- a/backend/app/plugins/wiaas/includes/admin/delivery-process/class-wiaas-admin-delivery-process-list.php +++ b/backend/app/plugins/wiaas/includes/admin/delivery-process/class-wiaas-admin-delivery-process-list.php @@ -90,24 +90,6 @@ class Wiaas_Admin_Delivery_Process_List { * @return mixed */ public static function filter_gform_form_actions($actions, $form_id) { - - $form_details = GFAPI::get_form($form_id); - $delivery_settings = rgar($form_details, 'wiaas_delivery_process'); - - if (empty($delivery_settings)) { - - return $actions; - } - - $type = $delivery_settings['delivery_form_type']; - - $is_action = $type === 'action'; - - if (!$is_action) { - - unset($actions['entries']); - } - unset($actions['entries']); unset($actions['preview']); unset($actions['edit']);