From eccd9ca1cb1915b5da50112e7f436eaf03f65e39 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 11 Jan 2016 16:41:46 +0100 Subject: [PATCH] Remove unused deprecated function --- lib/private/l10n.php | 11 ----------- tests/lib/l10n.php | 5 ----- 2 files changed, 16 deletions(-) diff --git a/lib/private/l10n.php b/lib/private/l10n.php index 7835285bd4..cef4f7b45a 100644 --- a/lib/private/l10n.php +++ b/lib/private/l10n.php @@ -76,17 +76,6 @@ class OC_L10N implements \OCP\IL10N { */ private $pluralFormFunction = null; - /** - * get an L10N instance - * @param string $app - * @param string|null $lang - * @return \OCP\IL10N - * @deprecated Use \OC::$server->getL10NFactory()->get() instead - */ - public static function get($app, $lang=null) { - return \OC::$server->getL10NFactory()->get($app, $lang); - } - /** * The constructor * @param string $app app requesting l10n diff --git a/tests/lib/l10n.php b/tests/lib/l10n.php index 631432caea..d77548c5bf 100644 --- a/tests/lib/l10n.php +++ b/tests/lib/l10n.php @@ -156,11 +156,6 @@ class Test_L10n extends \Test\TestCase { ); } - public function testGetLanguageCode() { - $l = OC_L10N::get('lib', 'de'); - $this->assertEquals('de', $l->getLanguageCode()); - } - public function testFactoryGetLanguageCode() { $factory = new \OC\L10N\Factory(); $l = $factory->get('lib', 'de');