Remove dead code
authorMatthew Flaschen <mflaschen@wikimedia.org>
Sat, 31 Aug 2013 05:53:43 +0000 (01:53 -0400)
committerMatthew Flaschen <mflaschen@wikimedia.org>
Sat, 31 Aug 2013 05:57:33 +0000 (01:57 -0400)
Accidentally left in dabbbc7d2a88ceb9efce5742af05e848dbcaa66e

Change-Id: I58e65ca7ad23d00992f66f3bcee879e662b62ef0

includes/OutputPage.php

index 83a7d3f..bf9f5ac 100644 (file)
@@ -2432,14 +2432,6 @@ $templates
         * @param $options Options array to pass to Linker
         */
        public function addReturnTo( $title, $query = array(), $text = null, $options = array() ) {
-               if ( in_array( 'http', $options ) ) {
-                       $proto = PROTO_HTTP;
-               } elseif ( in_array( 'https', $options ) ) {
-                       $proto = PROTO_HTTPS;
-               } else {
-                       $proto = PROTO_RELATIVE;
-               }
-
                $link = $this->msg( 'returnto' )->rawParams(
                        Linker::link( $title, $text, array(), $query, $options ) )->escaped();
                $this->addHTML( "<p id=\"mw-returnto\">{$link}</p>\n" );