From 37a9b66eb2d3f12828206daa2feb319ef995dca6 Mon Sep 17 00:00:00 2001 From: colemanw Date: Thu, 23 Oct 2025 15:13:02 -0400 Subject: [PATCH] Remove commented-out boilerplate Civix used to generate commented-out BAO create functions, however all BAOs now inherit writeRecords() from their parent. Since this function was never uncommented, it's safe to remove. --- CRM/Chat/BAO/ChatQuestion.php | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/CRM/Chat/BAO/ChatQuestion.php b/CRM/Chat/BAO/ChatQuestion.php index 3efa37a..c8e2ccb 100644 --- a/CRM/Chat/BAO/ChatQuestion.php +++ b/CRM/Chat/BAO/ChatQuestion.php @@ -3,24 +3,5 @@ class CRM_Chat_BAO_ChatQuestion extends CRM_Chat_DAO_ChatQuestion { - /** - * Create a new ChatQuestion based on array-data - * - * @param array $params key-value pairs - * @return CRM_Chat_DAO_ChatQuestion|NULL - * - public static function create($params) { - $className = 'CRM_Chat_DAO_ChatQuestion'; - $entityName = 'ChatQuestion'; - $hook = empty($params['id']) ? 'create' : 'edit'; - - CRM_Utils_Hook::pre($hook, $entityName, CRM_Utils_Array::value('id', $params), $params); - $instance = new $className(); - $instance->copyValues($params); - $instance->save(); - CRM_Utils_Hook::post($hook, $entityName, $instance->id, $instance); - - return $instance; - } */ }