Remove dead code - checkSQLConstraint functions
authorBradley Taylor <hello@brad-taylor.co.uk>
Sat, 23 Sep 2023 21:14:27 +0000 (22:14 +0100)
committerBradley Taylor <hello@brad-taylor.co.uk>
Sat, 23 Sep 2023 21:14:27 +0000 (22:14 +0100)
CRM/Upgrade/Form.php

index 87ad4c5cc31e055d1ac01f364352ad09f09eeea0..27cfa35e24be6e4da2a66fb316b3a013d9a51287 100644 (file)
@@ -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