From d7d6c46155dea9c59fcd6e2c40fd8a5864d34620 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 15 Jun 2018 19:01:35 -0700 Subject: [PATCH] (NFC) dev/core#174 - CRM_Utils_System::flushCache - Remove dead code Before ------ * The signature of `CRM_Utils_System::flushCache` does not accept arguments. * Random forms call it with arguments. After ----- * The signature of `CRM_Utils_System::flushCache` does not accept arguments. * Random forms call it without arguments. --- CRM/Admin/Form/Job.php | 2 +- CRM/Admin/Form/LocationType.php | 2 +- CRM/Admin/Form/PaymentProcessorType.php | 2 +- CRM/Group/Form/Edit.php | 2 +- CRM/SMS/Form/Provider.php | 2 +- CRM/Tag/Form/Tag.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CRM/Admin/Form/Job.php b/CRM/Admin/Form/Job.php index 74776dd0d41e..e319f498ca67 100644 --- a/CRM/Admin/Form/Job.php +++ b/CRM/Admin/Form/Job.php @@ -180,7 +180,7 @@ public function setDefaultValues() { */ public function postProcess() { - CRM_Utils_System::flushCache('CRM_Core_DAO_Job'); + CRM_Utils_System::flushCache(); if ($this->_action & CRM_Core_Action::DELETE) { CRM_Core_BAO_Job::del($this->_id); diff --git a/CRM/Admin/Form/LocationType.php b/CRM/Admin/Form/LocationType.php index 7979db2dabd2..b1e1a9776360 100644 --- a/CRM/Admin/Form/LocationType.php +++ b/CRM/Admin/Form/LocationType.php @@ -86,7 +86,7 @@ public function buildQuickForm() { * Process the form submission. */ public function postProcess() { - CRM_Utils_System::flushCache('CRM_Core_DAO_LocationType'); + CRM_Utils_System::flushCache(); if ($this->_action & CRM_Core_Action::DELETE) { CRM_Core_BAO_LocationType::del($this->_id); diff --git a/CRM/Admin/Form/PaymentProcessorType.php b/CRM/Admin/Form/PaymentProcessorType.php index f81617056744..6dfdaf7647cd 100644 --- a/CRM/Admin/Form/PaymentProcessorType.php +++ b/CRM/Admin/Form/PaymentProcessorType.php @@ -203,7 +203,7 @@ public function setDefaultValues() { * Process the form submission. */ public function postProcess() { - CRM_Utils_System::flushCache('CRM_Financial_DAO_PaymentProcessorType'); + CRM_Utils_System::flushCache(); if ($this->_action & CRM_Core_Action::DELETE) { CRM_Financial_BAO_PaymentProcessorType::del($this->_id); diff --git a/CRM/Group/Form/Edit.php b/CRM/Group/Form/Edit.php index bdf5333c5728..810ca19d1b80 100644 --- a/CRM/Group/Form/Edit.php +++ b/CRM/Group/Form/Edit.php @@ -364,7 +364,7 @@ public static function formRule($fields, $fileParams, $options) { * Process the form when submitted. */ public function postProcess() { - CRM_Utils_System::flushCache('CRM_Core_DAO_Group'); + CRM_Utils_System::flushCache(); $updateNestingCache = FALSE; if ($this->_action & CRM_Core_Action::DELETE) { diff --git a/CRM/SMS/Form/Provider.php b/CRM/SMS/Form/Provider.php index c5496c2b5710..f6aace804029 100644 --- a/CRM/SMS/Form/Provider.php +++ b/CRM/SMS/Form/Provider.php @@ -159,7 +159,7 @@ public function setDefaultValues() { */ public function postProcess() { - CRM_Utils_System::flushCache('CRM_SMS_DAO_Provider'); + CRM_Utils_System::flushCache(); if ($this->_action & CRM_Core_Action::DELETE) { CRM_SMS_BAO_Provider::del($this->_id); diff --git a/CRM/Tag/Form/Tag.php b/CRM/Tag/Form/Tag.php index ed75c7017c33..765c71eb7747 100644 --- a/CRM/Tag/Form/Tag.php +++ b/CRM/Tag/Form/Tag.php @@ -113,7 +113,7 @@ public function buildQuickForm() { * @return void */ public function postProcess() { - CRM_Utils_System::flushCache('CRM_Core_DAO_Tag'); + CRM_Utils_System::flushCache(); // array contains the posted values // exportvalues is not used because its give value 1 of the checkbox which were checked by default,