From 55f4c09434b7ca0eb970e7d256cfda4a0389b2e3 Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 31 Mar 2021 13:35:22 +1300 Subject: [PATCH] Remove unused private function --- CRM/Dedupe/Merger.php | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/CRM/Dedupe/Merger.php b/CRM/Dedupe/Merger.php index 59bc053582..579cb31da9 100644 --- a/CRM/Dedupe/Merger.php +++ b/CRM/Dedupe/Merger.php @@ -661,33 +661,6 @@ INNER JOIN civicrm_membership membership2 ON membership1.membership_type_id = m CRM_Contact_BAO_Contact::create($data); } - /** - * Given a contact ID, will check if a record exists in given table. - * - * @param int $contactID - * @param string $table - * @param string $idField - * Field where the contact's ID is stored in the table - * - * @return bool - * True if a record is found for the given contact ID, false otherwise - */ - private static function customRecordExists($contactID, $table, $idField) { - $sql = " - SELECT COUNT(*) AS count - FROM $table - WHERE $idField = $contactID - "; - $dbResult = CRM_Core_DAO::executeQuery($sql); - $dbResult->fetch(); - - if ($dbResult->count > 0) { - return TRUE; - } - - return FALSE; - } - /** * Load all non-empty fields for the contacts * -- 2.25.1