X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdiff%2FTextSlotDiffRenderer.php;h=510465bd962ccbdc64c09f7a46f8cab1f5d3bff8;hb=d029197c7c5b083edef20fa79cc3e6d58e161f72;hp=001944c5bed11595920641124050b2442f067376;hpb=044d888c41427967cd6f14303d300ceefa54d0c5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/diff/TextSlotDiffRenderer.php b/includes/diff/TextSlotDiffRenderer.php index 001944c5be..510465bd96 100644 --- a/includes/diff/TextSlotDiffRenderer.php +++ b/includes/diff/TextSlotDiffRenderer.php @@ -51,14 +51,6 @@ class TextSlotDiffRenderer extends SlotDiffRenderer { /** @var Language|null The language this content is in. */ private $language; - /** - * Number of paragraph moves the algorithm should attempt to detect. - * Only used with the wikidiff2 engine. - * @var int - * @see $wgWikiDiff2MovedParagraphDetectionCutoff - */ - private $wikiDiff2MovedParagraphDetectionCutoff = 0; - /** @var string One of the ENGINE_* constants. */ private $engine = self::ENGINE_PHP; @@ -72,7 +64,7 @@ class TextSlotDiffRenderer extends SlotDiffRenderer { * @return string */ public static function diff( $oldText, $newText ) { - /** @var $slotDiffRenderer TextSlotDiffRenderer */ + /** @var TextSlotDiffRenderer $slotDiffRenderer */ $slotDiffRenderer = ContentHandler::getForModelID( CONTENT_MODEL_TEXT ) ->getSlotDiffRenderer( RequestContext::getMain() ); return $slotDiffRenderer->getTextDiff( $oldText, $newText ); @@ -86,15 +78,6 @@ class TextSlotDiffRenderer extends SlotDiffRenderer { $this->language = $language; } - /** - * @param int $cutoff - * @see $wgWikiDiff2MovedParagraphDetectionCutoff - */ - public function setWikiDiff2MovedParagraphDetectionCutoff( $cutoff ) { - Assert::parameterType( 'integer', $cutoff, '$cutoff' ); - $this->wikiDiff2MovedParagraphDetectionCutoff = $cutoff; - } - /** * Set which diff engine to use. * @param string $type One of the ENGINE_* constants. @@ -205,7 +188,7 @@ class TextSlotDiffRenderer extends SlotDiffRenderer { $oldText, $newText, 2, - $this->wikiDiff2MovedParagraphDetectionCutoff + 0 ); } else { // Don't pass the 4th parameter introduced in version 1.5.0 and removed in version 1.8.0