From 38f6be2aa0e23e764c788041e6066377214cfacc Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Sun, 5 May 2013 18:22:03 +0100 Subject: [PATCH] Removed unnecessary methods --- src/OAuth2/Storage/PDO/Session.php | 20 -------------------- src/OAuth2/Storage/SessionInterface.php | 14 -------------- 2 files changed, 34 deletions(-) diff --git a/src/OAuth2/Storage/PDO/Session.php b/src/OAuth2/Storage/PDO/Session.php index 7a24d388..a5121074 100644 --- a/src/OAuth2/Storage/PDO/Session.php +++ b/src/OAuth2/Storage/PDO/Session.php @@ -63,16 +63,6 @@ class Session implements SessionInterface $stmt->execute(); } - /** - * Remove an associated redirect URI - * @param int $sessionId The session ID - * @return void - */ - public function removeRedirectUri($sessionId) - { - throw new \Exception('Not implemented - ' . debug_backtrace()[0]['function']); - } - /** * Associate an access token with a session * @param int $sessionId The session ID @@ -127,16 +117,6 @@ class Session implements SessionInterface $stmt->execute(); } - /** - * Remove an associated refresh token from a session - * @param int $sessionId The session ID - * @return void - */ - public function removeRefreshToken($sessionId) - { - throw new \Exception('Not implemented - ' . debug_backtrace()[0]['function']); - } - /** * Assocate an authorization code with a session * @param int $sessionId The session ID diff --git a/src/OAuth2/Storage/SessionInterface.php b/src/OAuth2/Storage/SessionInterface.php index b9ca2118..2933af6c 100644 --- a/src/OAuth2/Storage/SessionInterface.php +++ b/src/OAuth2/Storage/SessionInterface.php @@ -39,13 +39,6 @@ interface SessionInterface */ public function associateRedirectUri($sessionId, $redirectUri); - /** - * Remove an associated redirect URI - * @param int $sessionId The session ID - * @return void - */ - public function removeRedirectUri($sessionId); - /** * Associate an access token with a session * @param int $sessionId The session ID @@ -70,13 +63,6 @@ interface SessionInterface */ public function associateRefreshToken($accessTokenId, $refreshToken); - /** - * Remove an associated refresh token from a session - * @param int $sessionId The session ID - * @return void - */ - public function removeRefreshToken($sessionId); - /** * Assocate an authorization code with a session * @param int $sessionId The session ID