From ae4d4f45290a41153d5041fa0e10abdb2e4a3af5 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 5 Feb 2006 20:59:42 +0000 Subject: [PATCH] Remove uniqueArray() which returns a unique array (removes duplicates) Use array_unique() which is built into php instead. --- etc/inc/pfsense-utils.inc | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index eca92dff13..6205008e04 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1690,19 +1690,4 @@ function print_value_list($list, $count = 10, $separator = ",") { return $list; } -function uniqueArray($array) -{ - // Get unique elts as keys in assoc. array - for ($i=0,$n=count($array, 1);$i<$n;$i++) - $u_array[$array[$i]] = 1; - - // Copy keys only into another array - reset($u_array, 1); - for ($i=0,$n=count($u_array, 1);$i<$n;$i++) { - $unduplicated_array[] = key($u_array, 1); - next($u_array, 1); - } - return $unduplicated_array; -} - ?> \ No newline at end of file