Removed wfDataCenter()/wfDataCenter() roles
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 1 Oct 2015 19:58:52 +0000 (12:58 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 1 Oct 2015 20:00:05 +0000 (20:00 +0000)
* Follows-up 0a1c04bea
* The DC name ended up not being used in the cookie,
  making these unused

Change-Id: I5f0d822a334102ee9596b1ec2a8d911010294e7c

includes/GlobalFunctions.php

index 3b9a882..6fbc11d 100644 (file)
@@ -3605,28 +3605,6 @@ function wfSplitWikiID( $wiki ) {
        return $bits;
 }
 
-/**
- * @see $wgDataCenterRoles
- * @return string The current cluster ID
- * @since 1.27
- */
-function wfDataCenter() {
-       global $wgDataCenterId;
-
-       return $wgDataCenterId;
-}
-
-/**
- * @see $wgDataCenterRoles
- * @return string The current cluster role; one of (master/slave)
- * @since 1.27
- */
-function wfDataCenterRole() {
-       global $wgDataCenterId, $wgDataCenterRoles;
-
-       return $wgDataCenterRoles[$wgDataCenterId];
-}
-
 /**
  * Get a Database object.
  *