CommentFormatter: Remove old cached compatibility code

Added in 4bbfe6cb5d.

Change-Id: I4a6b265897beb60abc2a7c1e6bfc4acc646fda56
This commit is contained in:
Bartosz Dziewoński 2021-06-24 15:38:02 +02:00
parent c3844de173
commit a38eb4fe18

View file

@ -23,8 +23,6 @@ class CommentFormatter {
];
protected const MARKER_COMMENT = '<!-- DiscussionTools addDiscussionTools called -->';
// Compatibility with old cached content
protected const REPLY_LINKS_COMMENT = '<!-- DiscussionTools addReplyLinks called -->';
/**
* Get a comment parser object for a DOM element
@ -52,10 +50,6 @@ class CommentFormatter {
if ( strpos( $text, static::MARKER_COMMENT ) !== false ) {
return;
}
// Compatibility with old cached content
if ( strpos( $text, static::REPLY_LINKS_COMMENT ) !== false ) {
return;
}
$text = $text . "\n" . static::MARKER_COMMENT;