From 3a207c45621d284a01d161605bf570314a547933 Mon Sep 17 00:00:00 2001 From: Jaap Jansma Date: Mon, 4 Dec 2023 13:24:23 +0100 Subject: [PATCH] dev/core#4411: follow up PR of the language pr, this cleans up an unused function --- CRM/Utils/System/Standalone.php | 12 ------------ ext/standaloneusers/Civi/Standalone/Security.php | 6 ------ 2 files changed, 18 deletions(-) diff --git a/CRM/Utils/System/Standalone.php b/CRM/Utils/System/Standalone.php index 8f5d9ba710..39b870ed4f 100644 --- a/CRM/Utils/System/Standalone.php +++ b/CRM/Utils/System/Standalone.php @@ -481,18 +481,6 @@ class CRM_Utils_System_Standalone extends CRM_Utils_System_Base { CRM_Core_Session::setStatus('', $message, 'info'); } - /** - * Function to return current language. - * - * @return string - */ - public function getCurrentLanguage() { - if ($this->missingStandaloneExtension()) { - return NULL; - } - return Security::singleton()->getCurrentLanguage(); - } - /** * I don't know why this needs to be here? Does it even? * diff --git a/ext/standaloneusers/Civi/Standalone/Security.php b/ext/standaloneusers/Civi/Standalone/Security.php index 2f041d671b..7b5313a0c7 100644 --- a/ext/standaloneusers/Civi/Standalone/Security.php +++ b/ext/standaloneusers/Civi/Standalone/Security.php @@ -248,12 +248,6 @@ class Security { return !empty($this->getLoggedInUfID()); } - public function getCurrentLanguage() { - // @todo - \Civi::log()->debug('CRM_Utils_System_Standalone::getCurrentLanguage: not implemented'); - return NULL; - } - /** * This is the (perhaps temporary location for) the implementation of CRM_Utils_System_Standalone method. */ -- 2.25.1