Removed old DB_LAST cruft

Change-Id: I5517c43389182e61e4a969ed9ca71dae2388a5d0
This commit is contained in:
Aaron Schulz 2014-06-25 16:12:36 -07:00
parent add089c254
commit 26f386ae55
2 changed files with 1 additions and 6 deletions

View file

@ -59,7 +59,6 @@ define( 'DB_MASTER', -2 ); # Write to master (or only server)
# Obsolete aliases
define( 'DB_READ', -1 );
define( 'DB_WRITE', -2 );
define( 'DB_LAST', -3 ); # deprecated since 2008, usage throws exception
/**@{
* Virtual namespaces; don't appear in the page database

View file

@ -414,11 +414,7 @@ class LoadBalancer {
public function &getConnection( $i, $groups = array(), $wiki = false ) {
wfProfileIn( __METHOD__ );
if ( $i == DB_LAST ) {
wfProfileOut( __METHOD__ );
throw new MWException( 'Attempt to call ' . __METHOD__ .
' with deprecated server index DB_LAST' );
} elseif ( $i === null || $i === false ) {
if ( $i === null || $i === false ) {
wfProfileOut( __METHOD__ );
throw new MWException( 'Attempt to call ' . __METHOD__ .
' with invalid server index' );