瀏覽代碼

drop very old and very obsolete function

Thijs Kinkhorst 19 年之前
父節點
當前提交
125af3afaf
共有 1 個文件被更改,包括 0 次插入23 次删除
  1. 0 23
      functions/strings.php

+ 0 - 23
functions/strings.php

@@ -780,29 +780,6 @@ function quoteimap($str) {
     return preg_replace("/([\"\\\\])/", "\\\\$1", $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
  * Create compose link
  *
  *