From 13592a104f3dd7a637bb4ad852cb3bd1f9f8ef6d Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Sat, 23 Sep 2023 22:14:27 +0100 Subject: [PATCH] Remove dead code - checkSQLConstraint functions --- CRM/Upgrade/Form.php | 28 ---------------------------- 1 file changed, 28 deletions(-) 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 -- 2.25.1