From ab442912044814c61e1803bd9b572ec0952b0166 Mon Sep 17 00:00:00 2001 From: Matthew Flaschen Date: Sat, 31 Aug 2013 01:53:43 -0400 Subject: [PATCH] Remove dead code Accidentally left in dabbbc7d2a88ceb9efce5742af05e848dbcaa66e Change-Id: I58e65ca7ad23d00992f66f3bcee879e662b62ef0 --- includes/OutputPage.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 83a7d3f77a..bf9f5ac0b1 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -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( "

{$link}

\n" ); -- 2.20.1