diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/L10N/Factory.php | 18 | ||||
-rw-r--r-- | lib/public/L10N/IFactory.php | 8 |
2 files changed, 0 insertions, 26 deletions
diff --git a/lib/private/L10N/Factory.php b/lib/private/L10N/Factory.php index 8aad395065c..581ca3fb5d1 100644 --- a/lib/private/L10N/Factory.php +++ b/lib/private/L10N/Factory.php @@ -271,24 +271,6 @@ class Factory implements IFactory { } /** - * @param string|null $app App id or null for core - * @return string - */ - public function setLanguageFromRequest($app = null) { - - try { - $requestLanguage = $this->getLanguageFromRequest($app); - } catch (LanguageNotFoundException $e) { - $requestLanguage = 'en'; - } - - if ($app === null && !$this->requestLanguage) { - $this->requestLanguage = $requestLanguage; - } - return $requestLanguage; - } - - /** * Checks if $sub is a subdirectory of $parent * * @param string $sub diff --git a/lib/public/L10N/IFactory.php b/lib/public/L10N/IFactory.php index 0d6e583c7e5..b5f93c2389c 100644 --- a/lib/public/L10N/IFactory.php +++ b/lib/public/L10N/IFactory.php @@ -62,14 +62,6 @@ interface IFactory { public function languageExists($app, $lang); /** - * @param string|null $app App id or null for core - * @return string - * @since 9.0.0 - */ - public function setLanguageFromRequest($app = null); - - - /** * Creates a function from the plural string * * @param string $string |