From 4252f46f017a06394237dacd88cde783fdf35966 Mon Sep 17 00:00:00 2001 From: eileen Date: Fri, 31 Jan 2020 12:02:10 +1300 Subject: [PATCH] Remove unused setting --- CRM/Admin/Form/Setting.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/CRM/Admin/Form/Setting.php b/CRM/Admin/Form/Setting.php index b3982b121a16..41585c821389 100644 --- a/CRM/Admin/Form/Setting.php +++ b/CRM/Admin/Form/Setting.php @@ -34,12 +34,6 @@ class CRM_Admin_Form_Setting extends CRM_Core_Form { public function setDefaultValues() { if (!$this->_defaults) { $this->_defaults = []; - $formArray = ['Component', 'Localization']; - $formMode = FALSE; - if (in_array($this->_name, $formArray)) { - $formMode = TRUE; - } - $this->setDefaultsForMetadataDefinedFields(); // @todo these should be retrievable from the above function. @@ -54,6 +48,8 @@ public function setDefaultValues() { /** * Build the form object. + * + * @throws \CRM_Core_Exception */ public function buildQuickForm() { CRM_Core_Session::singleton()->pushUserContext(CRM_Utils_System::url('civicrm/admin', 'reset=1'));