Remove `BBCodeParser::validateBBCodes()` (#4319)
authorMatthias Schmidt <gravatronics@live.com>
Sun, 20 Jun 2021 11:37:29 +0000 (13:37 +0200)
committerGitHub <noreply@github.com>
Sun, 20 Jun 2021 11:37:29 +0000 (13:37 +0200)
This method has been deprecated for many years since 25863cff5dcb31c893b073aedf678b778a14d9fa and has resulted in an exception since then.

wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php

index f73eabb9fa6bd3f22a79b5d6ae67a6f622dd7b8d..ed9724c7c0c8f2251f7572e1027ea8379667c43c 100644 (file)
@@ -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.
      *