Remove dead code

This commit is contained in:
Nicolas Le Goff
2014-03-05 18:25:22 +01:00
parent a9fbeeffd5
commit b50734fb50

View File

@@ -67,12 +67,6 @@ class API_OAuth2_Adapter extends OAuth2
*/ */
protected $session_id; protected $session_id;
/**
*
* @var string
*/
protected $usr_id_requested;
/** /**
* access token of current request * access token of current request
* @var string * @var string
@@ -151,15 +145,6 @@ class API_OAuth2_Adapter extends OAuth2
return $this->session_id; return $this->session_id;
} }
/**
*
* @return int
*/
public function get_usr_id()
{
return $this->usr_id;
}
/** /**
* Implements OAuth2::checkClientCredentials(). * Implements OAuth2::checkClientCredentials().
* *
@@ -572,7 +557,7 @@ class API_OAuth2_Adapter extends OAuth2
} }
} }
public function verifyAccessToken($scope = null, $exit_not_present = TRUE, $exit_invalid = TRUE, $exit_expired = TRUE, $exit_scope = TRUE, $realm = null) public function verifyAccessToken($scope = null, $exit_not_present = true, $exit_invalid = true, $exit_expired = true, $exit_scope = true, $realm = null)
{ {
$token_param = $this->getAccessTokenParams(); $token_param = $this->getAccessTokenParams();
@@ -605,10 +590,9 @@ class API_OAuth2_Adapter extends OAuth2
} }
//save token's linked ses_id //save token's linked ses_id
$this->session_id = $token['session_id']; $this->session_id = $token['session_id'];
$this->usr_id = $token['usr_id'];
$this->token = $token['oauth_token']; $this->token = $token['oauth_token'];
return TRUE; return true;
} }
public function finishClientAuthorization($is_authorized, $params = []) public function finishClientAuthorization($is_authorized, $params = [])