diff options
Diffstat (limited to 'includes/libs/Stats/StatsUtils.php')
-rw-r--r-- | includes/libs/Stats/StatsUtils.php | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/includes/libs/Stats/StatsUtils.php b/includes/libs/Stats/StatsUtils.php index 7d0ec292b1fd..7ecbcef8d36a 100644 --- a/includes/libs/Stats/StatsUtils.php +++ b/includes/libs/Stats/StatsUtils.php @@ -25,9 +25,6 @@ use InvalidArgumentException; use Wikimedia\Stats\Exceptions\InvalidConfigurationException; /** - * - * StatsUtils Implementation - * * Functionality common to all metric types. * * @author Cole White @@ -112,27 +109,6 @@ class StatsUtils { } /** - * Merges two associative arrays of labels. Prioritizes leftmost labels. - * - * @param array $leftLabels - * @param array $rightLabels - * @return array - */ - public static function mergeLabels( array $leftLabels, array $rightLabels ): array { - $output = []; - foreach ( $leftLabels as $key => $value ) { - $output[$key] = $value; - } - foreach ( $rightLabels as $key => $value ) { - if ( array_key_exists( $key, $output ) ) { - continue; - } - $output[$key] = $value; - } - return $output; - } - - /** * Normalize an array of strings. * * @param string[] $entities |