Remove unused setting
authoreileen <emcnaughton@wikimedia.org>
Thu, 30 Jan 2020 23:02:10 +0000 (12:02 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 30 Jan 2020 23:02:10 +0000 (12:02 +1300)
CRM/Admin/Form/Setting.php

index b3982b121a16ae8356ab72a3fb021e1d2e80d1fa..41585c821389b9b75ac740cb9941c95b15eca446 100644 (file)
@@ -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 @@ class CRM_Admin_Form_Setting extends CRM_Core_Form {
 
   /**
    * Build the form object.
+   *
+   * @throws \CRM_Core_Exception
    */
   public function buildQuickForm() {
     CRM_Core_Session::singleton()->pushUserContext(CRM_Utils_System::url('civicrm/admin', 'reset=1'));