(NFC) dev/core#174 - CRM_Utils_System::flushCache - Remove dead code
authorTim Otten <totten@civicrm.org>
Sat, 16 Jun 2018 02:01:35 +0000 (19:01 -0700)
committerTim Otten <totten@civicrm.org>
Sat, 16 Jun 2018 02:03:11 +0000 (19:03 -0700)
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
CRM/Admin/Form/LocationType.php
CRM/Admin/Form/PaymentProcessorType.php
CRM/Group/Form/Edit.php
CRM/SMS/Form/Provider.php
CRM/Tag/Form/Tag.php

index 74776dd0d41e5bbb8a2d226cd117418aae7b9032..e319f498ca6790e250e9a614af1a918e6b1ae384 100644 (file)
@@ -180,7 +180,7 @@ class CRM_Admin_Form_Job extends CRM_Admin_Form {
    */
   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);
index 7979db2dabd229a3dbc099393cc19191a930fdc4..b1e1a97763600802ffb783b6b61f2a0a937773fe 100644 (file)
@@ -86,7 +86,7 @@ class CRM_Admin_Form_LocationType extends CRM_Admin_Form {
    * 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);
index f81617056744c6bfb0844b292607f808437a40d6..6dfdaf7647cda13235d9208a11b64165d7ed7117 100644 (file)
@@ -203,7 +203,7 @@ class CRM_Admin_Form_PaymentProcessorType extends CRM_Admin_Form {
    * 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);
index bdf5333c57284c491a1d96d97c2a59795c779111..810ca19d1b804053ea275678d0c771e782c4a206 100644 (file)
@@ -364,7 +364,7 @@ WHERE  title = %1
    * 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) {
index c5496c2b5710da75bc83e1e47beefe1c013fcfb5..f6aace804029dfa3e370b5eb9a0eaf9a2d8d26af 100644 (file)
@@ -159,7 +159,7 @@ class CRM_SMS_Form_Provider extends CRM_Core_Form {
    */
   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);
index ed75c7017c333f3f5d46d025ac6ac3069ec9a833..765c71eb7747372bfd480e86e9187d98bee7bcf5 100644 (file)
@@ -113,7 +113,7 @@ class CRM_Tag_Form_Tag extends CRM_Core_Form {
    * @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,