dev/core#4411: follow up PR of the language pr, this cleans up an unused function
authorJaap Jansma <jaap.jansma@civicoop.org>
Mon, 4 Dec 2023 12:24:23 +0000 (13:24 +0100)
committerJaap Jansma <jaap.jansma@civicoop.org>
Mon, 4 Dec 2023 12:24:23 +0000 (13:24 +0100)
CRM/Utils/System/Standalone.php
ext/standaloneusers/Civi/Standalone/Security.php

index 8f5d9ba710533ed0966542b4051a8c0f2d335364..39b870ed4f9aae62b4a059e1f1915939a1b6b84a 100644 (file)
@@ -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?
    *
index 2f041d671b1cb1f69eff9d137864e60121d72b96..7b5313a0c7878cb9ee957038a8952684168a34e9 100644 (file)
@@ -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.
    */