From 286d085d3578e437be8d87c604a2b49597ac78ae Mon Sep 17 00:00:00 2001 From: Vaidas Lungis Date: Tue, 17 Feb 2015 12:31:39 +0200 Subject: [PATCH] remove unused private _getIdentity() --- src/bb-library/Api/Handler.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/bb-library/Api/Handler.php b/src/bb-library/Api/Handler.php index 536eb6fed..b74a36e83 100644 --- a/src/bb-library/Api/Handler.php +++ b/src/bb-library/Api/Handler.php @@ -114,22 +114,4 @@ final class Api_Handler implements InjectionAwareInterface if($this->_enable_cache) $this->_cache[$cache_key] = $res; return $res; } - - private function _getIdentity() - { - if ('guest' == $this->type){ - return new Model_Guest(); - } - if ('system' == $this->type){ - return $this->di['mod_service']('staff')->getCronAdmin(); - } - if ('admin' == $this->type){ - return $this->di['loggedin_admin']; - } - if ('client' == $this->type){ - return $this->di['loggedin_client']; - } - - throw new Exception('Unrecognized Handler type: '.$this->type); - } } \ No newline at end of file