From a62077c93be3d9fbbd2d5d84ceb18f68adecf11f Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Thu, 28 Dec 2017 18:32:58 +0100
Subject: [PATCH] saml: remove unused code

---
 modules/saml/lib/Error.php | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/modules/saml/lib/Error.php b/modules/saml/lib/Error.php
index 22a031db4..b51c93bac 100644
--- a/modules/saml/lib/Error.php
+++ b/modules/saml/lib/Error.php
@@ -145,13 +145,6 @@ class sspmod_saml_Error extends SimpleSAML_Error_Exception {
 	 * @return SimpleSAML_Error_Exception  An exception representing this error.
 	 */
 	public function toException() {
-
-		if ($this->statusMessage !== NULL) {
-			$msg = $this->statusMessage;
-		} else {
-			$msg = '';
-		}
-
 		$e = NULL;
 
 		switch ($this->status) {
-- 
GitLab