Remove functions marked for removal in 1.19
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 6 May 2011 18:10:53 +0000 (18:10 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 6 May 2011 18:10:53 +0000 (18:10 +0000)
includes/GlobalFunctions.php

index 93470c1..48f879b 100644 (file)
@@ -848,50 +848,6 @@ function wfMsgExt( $key, $options ) {
        return $string;
 }
 
-
-/**
- * Just like exit() but makes a note of it.
- * Commits open transactions except if the error parameter is set
- *
- * @deprecated Please return control to the caller or throw an exception. Will
- *             be removed in 1.19.
- */
-function wfAbruptExit( $error = false ) {
-       static $called = false;
-       if ( $called ) {
-               exit( -1 );
-       }
-       $called = true;
-
-       wfDeprecated( __FUNCTION__ );
-       $bt = wfDebugBacktrace();
-       if( $bt ) {
-               for( $i = 0; $i < count( $bt ); $i++ ) {
-                       $file = isset( $bt[$i]['file'] ) ? $bt[$i]['file'] : 'unknown';
-                       $line = isset( $bt[$i]['line'] ) ? $bt[$i]['line'] : 'unknown';
-                       wfDebug( "WARNING: Abrupt exit in $file at line $line\n");
-               }
-       } else {
-               wfDebug( "WARNING: Abrupt exit\n" );
-       }
-
-       wfLogProfilingData();
-
-       if ( !$error ) {
-               wfGetLB()->closeAll();
-       }
-       exit( -1 );
-}
-
-/**
- * @deprecated Please return control the caller or throw an exception. Will
- *             be removed in 1.19.
- */
-function wfErrorExit() {
-       wfDeprecated( __FUNCTION__ );
-       wfAbruptExit( true );
-}
-
 /**
  * Print an error message and die, returning nonzero to the shell if any.  Plain die()
  * fails to return nonzero to the shell if you pass a string.  Entry points may customise
@@ -2128,15 +2084,6 @@ function swap( &$x, &$y ) {
        $y = $z;
 }
 
-/**
- * BC wrapper for MimeMagic::singleton()
- * @deprecated No longer needed as of 1.17 (r68836). Remove in 1.19.
- */
-function &wfGetMimeMagic() {
-       wfDeprecated( __FUNCTION__ );
-       return MimeMagic::singleton();
-}
-
 /**
  * Tries to get the system directory for temporary files. The TMPDIR, TMP, and
  * TEMP environment variables are then checked in sequence, and if none are set