From 5b348150f0b45ffc5659c621f521c5a8ca4150f6 Mon Sep 17 00:00:00 2001 From: kink Date: Mon, 7 Aug 2006 18:47:59 +0000 Subject: [PATCH] drop very old and very obsolete function git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11483 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/strings.php | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/functions/strings.php b/functions/strings.php index 650b9c5b..b804a6f0 100644 --- a/functions/strings.php +++ b/functions/strings.php @@ -780,29 +780,6 @@ function quoteimap($str) { return preg_replace("/([\"\\\\])/", "\\\\$1", $str); } -/** - * Trims array - * - * Trims every element in the array, ie. remove the first char of each element - * @param array $array the array to trim - * @since 1.2.0 - */ -function TrimArray(&$array) { - foreach ($array as $k => $v) { - global $$k; - if (is_array($$k)) { - foreach ($$k as $k2 => $v2) { - $$k[$k2] = substr($v2, 1); - } - } else { - $$k = substr($v, 1); - } - - /* Re-assign back to array. */ - $array[$k] = $$k; - } -} - /** * Create compose link * -- 2.25.1