remove unused private _getIdentity()

This commit is contained in:
Vaidas Lungis committed 2015-02-17 12:31:39 +02:00
1 parent 7e4df76c74
commit 286d085d35
1 file changed
-18
-18
View File
@@ -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);
}
}