Removed unused functions

This commit is contained in:
Alex Bilbie 2013-05-08 13:24:29 -07:00
parent 437833cd32
commit e2350a65b1
2 changed files with 0 additions and 23 deletions

View File

@ -84,22 +84,6 @@ class Session implements SessionInterface
return $db->lastInsertId();
}
/**
* Remove an associated access token from a session
* @param int $sessionId The session ID
* @return void
*/
public function removeAccessToken($sessionId)
{
$db = \ezcDbInstance::get();
$stmt = $db->prepare('INSERT INTO oauth_session_refresh_tokens (session_access_token_id, refresh_token) VALUE
(:accessTokenId, :refreshToken)');
$stmt->bindValue(':accessTokenId', $accessTokenId);
$stmt->bindValue(':refreshToken', $params['refresh_token']);
$stmt->execute();
}
/**
* Associate a refresh token with a session
* @param int $accessTokenId The access token ID

View File

@ -48,13 +48,6 @@ interface SessionInterface
*/
public function associateAccessToken($sessionId, $accessToken, $expireTime);
/**
* Remove an associated access token from a session
* @param int $sessionId The session ID
* @return void
*/
public function removeAccessToken($sessionId);
/**
* Associate a refresh token with a session
* @param int $accessTokenId The access token ID