From 42af2eb51b400764030205ac4e74d0d19b641bab Mon Sep 17 00:00:00 2001
From: Jaime Perez Crespo <jaime.perez@uninett.no>
Date: Thu, 23 Apr 2015 16:18:34 +0200
Subject: [PATCH] Deprecate SimpleSAML_Utilities::maskErrors() and
 SimpleSAML_Utilities::popErrorMask(). These two should be where they are
 used, in the OpenID modules.

---
 lib/SimpleSAML/Utilities.php | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/lib/SimpleSAML/Utilities.php b/lib/SimpleSAML/Utilities.php
index f9c1a7560..d6fc3ceb8 100644
--- a/lib/SimpleSAML/Utilities.php
+++ b/lib/SimpleSAML/Utilities.php
@@ -685,11 +685,7 @@ class SimpleSAML_Utilities {
 
 
 	/**
-	 * Disable reporting of the given log levels.
-	 *
-	 * Every call to this function must be followed by a call to popErrorMask();
-	 *
-	 * @param int $mask  The log levels that should be masked.
+	 * @deprecated This method will be removed in SSP 2.0.
 	 */
 	public static function maskErrors($mask) {
 		assert('is_int($mask)');
@@ -704,12 +700,9 @@ class SimpleSAML_Utilities {
 
 
 	/**
-	 * Pop an error mask.
-	 *
-	 * This function restores the previous error mask.
+	 * @deprecated This method will be removed in SSP 2.0.
 	 */
 	public static function popErrorMask() {
-
 		$lastMask = array_pop(self::$logLevelStack);
 		error_reporting($lastMask[0]);
 		self::$logMask = $lastMask[1];
-- 
GitLab