From e055d8abcd587b2f9316490892ffb0046d3db94d Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 1 Oct 2015 12:58:52 -0700 Subject: [PATCH] Removed wfDataCenter()/wfDataCenter() roles * Follows-up 0a1c04bea * The DC name ended up not being used in the cookie, making these unused Change-Id: I5f0d822a334102ee9596b1ec2a8d911010294e7c --- includes/GlobalFunctions.php | 22 ---------------------- 1 file changed, 22 deletions(-) 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. * -- 2.20.1