From 1cc666b2a2a5074f7eb6b9bb6010b16162cd5c88 Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Thu, 28 Dec 2017 18:27:36 +0100
Subject: [PATCH] oauth: remove unused code

---
 modules/oauth/lib/OAuthStore.php | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/modules/oauth/lib/OAuthStore.php b/modules/oauth/lib/OAuthStore.php
index 9243a341c..3b9ec1afa 100644
--- a/modules/oauth/lib/OAuthStore.php
+++ b/modules/oauth/lib/OAuthStore.php
@@ -40,16 +40,10 @@ class sspmod_oauth_OAuthStore extends OAuthDataStore {
      */
 	public function authorize($requestTokenKey, $data) {
 		$url = null;
-		$verifier = '';
-		$version = $this->defaultversion;
 		
 		// See whether to remember values from the original requestToken request:
 		$request_attributes = $this->store->get('requesttorequest', $requestTokenKey, '');	// must be there ..
 		if ($request_attributes['value']) {
-			// establish version to work with
-			$v = $request_attributes['value']['version'];
-			if ($v) $version = $v; 
-			
 			// establish callback to use
 			if ($request_attributes['value']['callback']) {
 				$url = $request_attributes['value']['callback'];
-- 
GitLab