From: Matthias Schmidt Date: Sun, 20 Jun 2021 11:37:29 +0000 (+0200) Subject: Remove `BBCodeParser::validateBBCodes()` (#4319) X-Git-Tag: 5.5.0_Alpha_1~619^2~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2e0d3c82db81fe935ff0c45b8bba9b55277e9b93;p=GitHub%2FWoltLab%2FWCF.git Remove `BBCodeParser::validateBBCodes()` (#4319) This method has been deprecated for many years since 25863cff5dcb31c893b073aedf678b778a14d9fa and has resulted in an exception since then. --- diff --git a/wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php b/wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php index f73eabb9fa..ed9724c7c0 100644 --- a/wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php @@ -598,19 +598,6 @@ class BBCodeParser extends SingletonFactory return $matches[1]; } - /** - * Validates the used BBCodes in the given text by the given allowed - * BBCodes and returns a list of used disallowed BBCodes. - * - * @param string $text - * @param string[] $allowedBBCodes - * @deprecated 3.0 - please use HtmlInputProcessor::validate() instead - */ - public function validateBBCodes($text, array $allowedBBCodes) - { - throw new \RuntimeException("validateBBCodes() is no longer supported, please use HtmlInputProcessor::validate() instead."); - } - /** * Removes code bbcode occurrences in given message. *