Remove unused deprecated function

This commit is contained in:
Roeland Jago Douma 2016-01-11 16:41:46 +01:00
parent c1d8a03662
commit eccd9ca1cb
2 changed files with 0 additions and 16 deletions

View File

@ -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

View File

@ -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');