From: Coleman Watts Date: Mon, 17 Jan 2022 20:54:46 +0000 (-0500) Subject: Remove constructors that do nothing X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d644e774f3c8510779119c8a57379a0529b130bf;p=civicrm-core.git Remove constructors that do nothing --- diff --git a/CRM/Contact/Page/View/CustomData.php b/CRM/Contact/Page/View/CustomData.php index 3000627b0b..438bbc83a1 100644 --- a/CRM/Contact/Page/View/CustomData.php +++ b/CRM/Contact/Page/View/CustomData.php @@ -27,15 +27,6 @@ class CRM_Contact_Page_View_CustomData extends CRM_Core_Page { */ public $_groupId; - /** - * Class constructor. - * - * @return CRM_Contact_Page_View_CustomData - */ - public function __construct() { - parent::__construct(); - } - /** * Add a few specific things to view contact. */ diff --git a/CRM/Contribute/BAO/ContributionSoft.php b/CRM/Contribute/BAO/ContributionSoft.php index 655f112cd9..7d93a9250a 100644 --- a/CRM/Contribute/BAO/ContributionSoft.php +++ b/CRM/Contribute/BAO/ContributionSoft.php @@ -18,13 +18,6 @@ use Civi\Api4\Contribution; */ class CRM_Contribute_BAO_ContributionSoft extends CRM_Contribute_DAO_ContributionSoft { - /** - * Construct method. - */ - public function __construct() { - parent::__construct(); - } - /** * Add contribution soft credit record. * diff --git a/CRM/Core/BAO/FinancialTrxn.php b/CRM/Core/BAO/FinancialTrxn.php index 0e1499e208..7cd00efb32 100644 --- a/CRM/Core/BAO/FinancialTrxn.php +++ b/CRM/Core/BAO/FinancialTrxn.php @@ -15,17 +15,6 @@ * @copyright CiviCRM LLC https://civicrm.org/licensing */ class CRM_Core_BAO_FinancialTrxn extends CRM_Financial_DAO_FinancialTrxn { - /** - * Class constructor. - * - * @return \CRM_Financial_DAO_FinancialTrxn - */ - - /** - */ - public function __construct() { - parent::__construct(); - } /** * Takes an associative array and creates a financial transaction object. diff --git a/CRM/Core/Config.php b/CRM/Core/Config.php index 6ca6e68ea4..c1db7ff809 100644 --- a/CRM/Core/Config.php +++ b/CRM/Core/Config.php @@ -66,14 +66,6 @@ class CRM_Core_Config extends CRM_Core_Config_MagicMerge { */ private static $_singleton = NULL; - /** - * The constructor. Sets domain id if defined, otherwise assumes - * single instance installation. - */ - public function __construct() { - parent::__construct(); - } - /** * Singleton function used to manage this object. * diff --git a/CRM/Core/Smarty.php b/CRM/Core/Smarty.php index 49a40a4fe3..bcd9c69d91 100644 --- a/CRM/Core/Smarty.php +++ b/CRM/Core/Smarty.php @@ -63,15 +63,6 @@ class CRM_Core_Smarty extends Smarty { */ private $backupFrames = []; - /** - * Class constructor. - * - * @return CRM_Core_Smarty - */ - public function __construct() { - parent::__construct(); - } - private function initialize() { $config = CRM_Core_Config::singleton(); diff --git a/CRM/Event/BAO/Participant.php b/CRM/Event/BAO/Participant.php index 537142a280..ed4ef1e67e 100644 --- a/CRM/Event/BAO/Participant.php +++ b/CRM/Event/BAO/Participant.php @@ -44,12 +44,6 @@ class CRM_Event_BAO_Participant extends CRM_Event_DAO_Participant { 'Pending from approval' => ['Registered', 'Cancelled'], ]; - /** - */ - public function __construct() { - parent::__construct(); - } - /** * Takes an associative array and creates a participant object. * diff --git a/CRM/Friend/BAO/Friend.php b/CRM/Friend/BAO/Friend.php index df14f59082..216242af2e 100644 --- a/CRM/Friend/BAO/Friend.php +++ b/CRM/Friend/BAO/Friend.php @@ -28,12 +28,6 @@ class CRM_Friend_BAO_Friend extends CRM_Friend_DAO_Friend { */ public $_friendId; - /** - */ - public function __construct() { - parent::__construct(); - } - /** * Takes an associative array and creates a friend object. * diff --git a/CRM/Mailing/BAO/BouncePattern.php b/CRM/Mailing/BAO/BouncePattern.php index b8ffd594c2..a56aefa019 100644 --- a/CRM/Mailing/BAO/BouncePattern.php +++ b/CRM/Mailing/BAO/BouncePattern.php @@ -22,13 +22,6 @@ class CRM_Mailing_BAO_BouncePattern extends CRM_Mailing_DAO_BouncePattern { */ public static $_patterns = NULL; - /** - * Class constructor. - */ - public function __construct() { - parent::__construct(); - } - /** * Build the static pattern array. */