From 362e506fd6aa12f887246821a50fca15dcfe45b4 Mon Sep 17 00:00:00 2001 From: Nathan Curtis Date: Fri, 30 Nov 2007 02:08:13 +0000 Subject: [PATCH] don't need insert - you can add values with ArrayUtil.splice() git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4888 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/ArrayUtil.as | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/as/com/threerings/util/ArrayUtil.as b/src/as/com/threerings/util/ArrayUtil.as index 96efd4f5e..3b36141c2 100644 --- a/src/as/com/threerings/util/ArrayUtil.as +++ b/src/as/com/threerings/util/ArrayUtil.as @@ -144,19 +144,6 @@ public class ArrayUtil return true; } - /** - * Inserts the element into the array at the given index, increasing the index on all - * remaining elements by one. This function modifies the array passed in, rather than creating - * a new one. - */ - public static function insert (arr :Array, index :int, element :Object) :void - { - for (var ii :int = arr.length; ii > index; ii--) { - arr[ii] = arr[ii - 1]; - } - arr[index] = element; - } - /** * Implementation of remove methods. */