StubObject: Remove redundant _call() method in StubUserLang
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 9 Mar 2016 15:40:51 +0000 (15:40 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Wed, 9 Mar 2016 15:41:53 +0000 (15:41 +0000)
Already exists the same way in the base class.

Change-Id: If6c89cf42f11655ea45a1d6e1660f6e5e2593169

includes/StubObject.php

index 4abc283..211afda 100644 (file)
@@ -165,9 +165,7 @@ class StubObject {
 }
 
 /**
- * Stub object for the user language. It depends of the user preferences and
- * "uselang" parameter that can be passed to index.php. This object have to be
- * in $wgLang global.
+ * Stub object for the user language. Assigned to the $wgLang global.
  */
 class StubUserLang extends StubObject {
 
@@ -175,10 +173,6 @@ class StubUserLang extends StubObject {
                parent::__construct( 'wgLang' );
        }
 
-       public function __call( $name, $args ) {
-               return $this->_call( $name, $args );
-       }
-
        /**
         * Call Language::findVariantLink after unstubbing $wgLang.
         *