From: Bradley Taylor Date: Sat, 23 Sep 2023 21:14:27 +0000 (+0100) Subject: Remove dead code - checkSQLConstraint functions X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=13592a104f3dd7a637bb4ad852cb3bd1f9f8ef6d;p=civicrm-core.git Remove dead code - checkSQLConstraint functions --- diff --git a/CRM/Upgrade/Form.php b/CRM/Upgrade/Form.php index 87ad4c5cc3..27cfa35e24 100644 --- a/CRM/Upgrade/Form.php +++ b/CRM/Upgrade/Form.php @@ -141,34 +141,6 @@ class CRM_Upgrade_Form extends CRM_Core_Form { return ($versionParts[2] == $release); } - /** - * @param $constraints - * - * @return array - */ - public function checkSQLConstraints(&$constraints) { - $pass = $fail = 0; - foreach ($constraints as $constraint) { - if ($this->checkSQLConstraint($constraint)) { - $pass++; - } - else { - $fail++; - } - return [$pass, $fail]; - } - } - - /** - * @param $constraint - * - * @return bool - */ - public function checkSQLConstraint($constraint) { - // check constraint here - return TRUE; - } - /** * @param string $fileName * @param bool $isQueryString