requestWriteMode() is deprecated and unused
authorMax Semenik <maxsem@users.mediawiki.org>
Thu, 8 Jul 2010 19:30:21 +0000 (19:30 +0000)
committerMax Semenik <maxsem@users.mediawiki.org>
Thu, 8 Jul 2010 19:30:21 +0000 (19:30 +0000)
includes/api/ApiMain.php

index f296294..d183939 100644 (file)
@@ -207,19 +207,6 @@ class ApiMain extends ApiBase {
                return $this->mPrinter;
        }
 
-       /**
-        * Only kept for backwards compatibility
-        * @deprecated Use isWriteMode() instead
-        */
-       public function requestWriteMode() {
-               if ( !$this->mEnableWrite ) {
-                       $this->dieUsageMsg( array( 'writedisabled' ) );
-               }
-               if ( wfReadOnly() ) {
-                       $this->dieUsageMsg( array( 'readonlytext' ) );
-               }
-       }
-
        /**
         * Set how long the response should be cached.
         */