From f2b09dfe7a2191392d04649848aebf19819b0e6e Mon Sep 17 00:00:00 2001
From: Jaime Perez Crespo <jaime.perez@uninett.no>
Date: Mon, 19 Jan 2015 16:33:40 +0100
Subject: [PATCH] Remove getSize() from SimpleSAML_Session.

---
 lib/SimpleSAML/Session.php      | 12 ------------
 modules/oauth/www/authorize.php |  1 -
 2 files changed, 13 deletions(-)

diff --git a/lib/SimpleSAML/Session.php b/lib/SimpleSAML/Session.php
index b40754d14..b41c33d1a 100644
--- a/lib/SimpleSAML/Session.php
+++ b/lib/SimpleSAML/Session.php
@@ -473,18 +473,6 @@ class SimpleSAML_Session {
 	}
 
 
-	/**
-	 * Calculates the size of the session object after serialization
-	 *
-	 * @return int The size of the session measured in bytes.
-	 * @deprecated
-	 */
-	public function getSize() {
-		$s = serialize($this);
-		return strlen($s);
-	}
-
-
 	/**
 	 * This function registers a logout handler.
 	 *
diff --git a/modules/oauth/www/authorize.php b/modules/oauth/www/authorize.php
index 79eba5ded..25fe1941a 100644
--- a/modules/oauth/www/authorize.php
+++ b/modules/oauth/www/authorize.php
@@ -69,7 +69,6 @@ try {
 
 		$t->data['header'] = '{status:header_saml20_sp}';
 		$t->data['remaining'] = $session->getAuthData($as, "Expire") - time();
-		$t->data['sessionsize'] = $session->getSize();
 		$t->data['attributes'] = $attributes;
 		$t->data['logouturl'] = SimpleSAML_Utilities::selfURLNoQuery() . '?logout';
 		$t->data['oauth_verifier'] = $verifier;
-- 
GitLab