Remove unused deprecated function
This commit is contained in:
parent
c1d8a03662
commit
eccd9ca1cb
2 changed files with 0 additions and 16 deletions
|
@ -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
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue