diff --git a/lib/SimpleSAML/Session.php b/lib/SimpleSAML/Session.php index b40754d14f6d5992bd9a0740f54d266221aa392b..b41c33d1a26f7dbd7fafe8952e884f6cbcacf0d7 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 79eba5ded648716433bfa8f5e4817f9e639a5824..25fe1941a34ec3b494b72b777861a3a59003f653 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;