editpage: Make TextConflictHelper::toEditContent private
authorThiemo Kreuz <thiemo.kreuz@wikimedia.de>
Wed, 24 Apr 2019 08:29:32 +0000 (10:29 +0200)
committerThiemo Kreuz <thiemo.kreuz@wikimedia.de>
Wed, 24 Apr 2019 08:34:01 +0000 (10:34 +0200)
The method is not used anywhere:
https://codesearch.wmflabs.org/search/?q=toEditContent&i=1
There is another method with the same name in the EditPage class. But
this is unrelated. As far as I can see the method I'm touching in this
patch was copied from the EditPage class.

Change-Id: I51d167723bd70220adbf4ac36f15f3290b7eb653

includes/editpage/TextConflictHelper.php

index 2471b52..b5b74fb 100644 (file)
@@ -245,7 +245,7 @@ class TextConflictHelper {
         * @param string $text
         * @return Content
         */
-       public function toEditContent( $text ) {
+       private function toEditContent( $text ) {
                return ContentHandler::makeContent(
                        $text,
                        $this->title,