Remove unused deprecated function
This commit is contained in:
parent
c1d8a03662
commit
eccd9ca1cb
|
@ -76,17 +76,6 @@ class OC_L10N implements \OCP\IL10N {
|
||||||
*/
|
*/
|
||||||
private $pluralFormFunction = null;
|
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
|
* The constructor
|
||||||
* @param string $app app requesting l10n
|
* @param string $app app requesting l10n
|
||||||
|
|
|
@ -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() {
|
public function testFactoryGetLanguageCode() {
|
||||||
$factory = new \OC\L10N\Factory();
|
$factory = new \OC\L10N\Factory();
|
||||||
$l = $factory->get('lib', 'de');
|
$l = $factory->get('lib', 'de');
|
||||||
|
|
Loading…
Reference in New Issue