diff --git a/lib/SimpleSAML/Utilities.php b/lib/SimpleSAML/Utilities.php
index f9c1a75602c136d369a57e3b206018334cd1c6a7..d6fc3ceb8fe6e9258688bef16c8fceff073a613f 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];