diff --git a/lib/classes/output/notification.php b/lib/classes/output/notification.php index e071d6ba12d..93f8b59f0d5 100644 --- a/lib/classes/output/notification.php +++ b/lib/classes/output/notification.php @@ -55,24 +55,6 @@ class notification implements \renderable, \templatable { */ const NOTIFY_ERROR = 'error'; - /** - * @deprecated - * A generic message. - */ - const NOTIFY_MESSAGE = 'message'; - - /** - * @deprecated - * A message notifying the user that a problem occurred. - */ - const NOTIFY_PROBLEM = 'problem'; - - /** - * @deprecated - * A notification of level 'redirect'. - */ - const NOTIFY_REDIRECT = 'redirect'; - /** * @var string Message payload. */ @@ -102,7 +84,7 @@ class notification implements \renderable, \templatable { * Notification constructor. * * @param string $message the message to print out - * @param string $messagetype normally NOTIFY_PROBLEM or NOTIFY_SUCCESS. + * @param string $messagetype one of the NOTIFY_* constants.. */ public function __construct($message, $messagetype = null) { $this->message = $message; @@ -112,13 +94,6 @@ class notification implements \renderable, \templatable { } $this->messagetype = $messagetype; - - switch ($messagetype) { - case self::NOTIFY_PROBLEM: - case self::NOTIFY_REDIRECT: - case self::NOTIFY_MESSAGE: - debugging('Use of ' . $messagetype . ' has been deprecated. Please switch to an alternative type.'); - } } /**