From 3ea2dfa5f9c0692f68ce64856bdf203a9bbc2018 Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Mon, 7 Oct 2013 11:36:38 +0200 Subject: remove getTrans() from API class --- lib/private/appframework/core/api.php | 10 ---------- lib/public/appframework/iapi.php | 8 -------- 2 files changed, 18 deletions(-) (limited to 'lib') diff --git a/lib/private/appframework/core/api.php b/lib/private/appframework/core/api.php index c5991237ed1..31da0706a15 100644 --- a/lib/private/appframework/core/api.php +++ b/lib/private/appframework/core/api.php @@ -99,16 +99,6 @@ class API implements IApi{ } - /** - * Returns the translation object - * @return \OC_L10N the translation object - */ - public function getTrans(){ - # TODO: use public api - return \OC_L10N::get($this->appName); - } - - /** * Returns the URL for a route * @param string $routeName the name of the route diff --git a/lib/public/appframework/iapi.php b/lib/public/appframework/iapi.php index fa6af5f5965..818647c19fd 100644 --- a/lib/public/appframework/iapi.php +++ b/lib/public/appframework/iapi.php @@ -67,14 +67,6 @@ interface IApi { */ function add3rdPartyStyle($name); - /** - * Returns the translation object - * @return \OC_L10N the translation object - * - * FIXME: returns private object / should be retrieved from teh ServerContainer - */ - function getTrans(); - /** * Returns the URL for a route -- cgit v1.2.3