Merge pull request #21624 from owncloud/l10n_deprecated_function

Remove unused deprecated function from l10n.php
This commit is contained in:
Thomas Müller 2016-01-12 08:34:00 +01:00
commit d11d9407ce
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');