From d9b6455f71d1d0d82998cc6db0b1cfd86ee76579 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Sat, 2 Oct 2010 22:42:44 +0000 Subject: [PATCH] Remove comments related to no longer existent and relevant compatibility function for array_diff_key(). --- includes/LinksUpdate.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/includes/LinksUpdate.php b/includes/LinksUpdate.php index 4892ff02bb..c80c07d1ab 100644 --- a/includes/LinksUpdate.php +++ b/includes/LinksUpdate.php @@ -351,8 +351,6 @@ class LinksUpdate { function getLinkInsertions( $existing = array() ) { $arr = array(); foreach( $this->mLinks as $ns => $dbkeys ) { - # array_diff_key() was introduced in PHP 5.1, there is a compatibility function - # in GlobalFunctions.php $diffs = isset( $existing[$ns] ) ? array_diff_key( $dbkeys, $existing[$ns] ) : $dbkeys; foreach ( $diffs as $dbk => $id ) { $arr[] = array( @@ -515,8 +513,6 @@ class LinksUpdate { function getInterwikiInsertions( $existing = array() ) { $arr = array(); foreach( $this->mInterwikis as $prefix => $dbkeys ) { - # array_diff_key() was introduced in PHP 5.1, there is a compatibility function - # in GlobalFunctions.php $diffs = isset( $existing[$prefix] ) ? array_diff_key( $dbkeys, $existing[$prefix] ) : $dbkeys; foreach ( $diffs as $dbk => $id ) { $arr[] = array( @@ -529,8 +525,6 @@ class LinksUpdate { return $arr; } - - /** * Given an array of existing links, returns those links which are not in $this * and thus should be deleted. -- 2.20.1