From: Aaron Schulz Date: Thu, 1 Oct 2015 19:58:52 +0000 (-0700) Subject: Removed wfDataCenter()/wfDataCenter() roles X-Git-Tag: 1.31.0-rc.0~9602^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=e055d8abcd587b2f9316490892ffb0046d3db94d;p=lhc%2Fweb%2Fwiklou.git Removed wfDataCenter()/wfDataCenter() roles * Follows-up 0a1c04bea * The DC name ended up not being used in the cookie, making these unused Change-Id: I5f0d822a334102ee9596b1ec2a8d911010294e7c --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 3b9a8826c7..6fbc11d0d8 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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. *