From b821e21988c2154ee8fe881ec5afe3ffeba2fb2a Mon Sep 17 00:00:00 2001 From: Jaime Perez <jaime.perez@uninett.no> Date: Wed, 5 Mar 2014 15:09:53 +0100 Subject: [PATCH] Remove getAttribute() and setAttribute() from SimpleSAML_Session. --- lib/SimpleSAML/Session.php | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/lib/SimpleSAML/Session.php b/lib/SimpleSAML/Session.php index 4756b0d93..998045ff1 100644 --- a/lib/SimpleSAML/Session.php +++ b/lib/SimpleSAML/Session.php @@ -734,21 +734,6 @@ class SimpleSAML_Session { } - /** - * Retrieve a single attribute. - * - * @param string $name The name of the attribute. - * @return array|NULL The values of the given attribute. - * @deprecated - */ - public function getAttribute($name) { - if (!isset($this->authData[$this->authority]['Attributes'][$name])) { - return NULL; - } - return $this->authData[$this->authority]['Attributes'][$name]; - } - - /** * Set the attributes for this session. * @@ -763,20 +748,6 @@ class SimpleSAML_Session { } - /** - * Set the values of a single attribute. - * - * @param string $name The name of the attribute. - * @param array $value The values of the attribute. - */ - public function setAttribute($name, $value) { - assert('isset($this->authData[$this->authority])'); - - $this->dirty = true; - $this->authData[$this->authority]['Attributes'][$name] = $value; - } - - /** * Calculates the size of the session object after serialization * -- GitLab