From 2873c31f452abd405a4493375ccfc62d1d1e3aad Mon Sep 17 00:00:00 2001 From: Bruno Garcia Date: Fri, 17 Jun 2011 22:18:08 +0000 Subject: [PATCH] ArrayUtil --> Arrays. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6660 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../as/com/threerings/crowd/chat/client/ChatDirector.as | 6 +++--- src/main/as/com/threerings/presents/dobj/OidList.as | 8 ++++---- src/main/as/com/threerings/util/StreamableArrayList.as | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/as/com/threerings/crowd/chat/client/ChatDirector.as b/src/main/as/com/threerings/crowd/chat/client/ChatDirector.as index 0c53893a1..7a2aae154 100644 --- a/src/main/as/com/threerings/crowd/chat/client/ChatDirector.as +++ b/src/main/as/com/threerings/crowd/chat/client/ChatDirector.as @@ -20,7 +20,7 @@ // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA package com.threerings.crowd.chat.client { -import com.threerings.util.ArrayUtil; +import com.threerings.util.Arrays; import com.threerings.util.Log; import com.threerings.util.Map; import com.threerings.util.Maps; @@ -214,7 +214,7 @@ public class ChatDirector extends BasicDirector return; } - var wasThere :Boolean = ArrayUtil.removeAll(_chatters, name); + var wasThere :Boolean = Arrays.removeAll(_chatters, name); _chatters.unshift(name); if (!wasThere) { @@ -782,7 +782,7 @@ public class ChatDirector extends BasicDirector protected function addToHistory (cmd :String) :void { // remove any previous instance of this command - ArrayUtil.removeAll(_history, cmd); + Arrays.removeAll(_history, cmd); // append it to the end _history.push(cmd); diff --git a/src/main/as/com/threerings/presents/dobj/OidList.as b/src/main/as/com/threerings/presents/dobj/OidList.as index 4a7640442..457012929 100644 --- a/src/main/as/com/threerings/presents/dobj/OidList.as +++ b/src/main/as/com/threerings/presents/dobj/OidList.as @@ -21,7 +21,7 @@ package com.threerings.presents.dobj { -import com.threerings.util.ArrayUtil; +import com.threerings.util.Arrays; import com.threerings.io.Streamable; @@ -64,7 +64,7 @@ public class OidList public function add (oid :int) :Boolean { // check for existence - if (ArrayUtil.contains(_oids, oid)) { + if (Arrays.contains(_oids, oid)) { return false; } @@ -82,7 +82,7 @@ public class OidList public function remove (oid :int) :Boolean { // scan for the oid in question - return ArrayUtil.removeFirst(_oids, oid); + return Arrays.removeFirst(_oids, oid); } /** @@ -90,7 +90,7 @@ public class OidList */ public function contains (oid :int) :Boolean { - return ArrayUtil.contains(_oids, oid); + return Arrays.contains(_oids, oid); } /** diff --git a/src/main/as/com/threerings/util/StreamableArrayList.as b/src/main/as/com/threerings/util/StreamableArrayList.as index ad9ad489e..dd4f869d5 100644 --- a/src/main/as/com/threerings/util/StreamableArrayList.as +++ b/src/main/as/com/threerings/util/StreamableArrayList.as @@ -60,7 +60,7 @@ public class StreamableArrayList public function contains (item :Object) :Boolean { - return ArrayUtil.contains(_array, item); + return Arrays.contains(_array, item); } public function get (index :int) :* @@ -70,7 +70,7 @@ public class StreamableArrayList public function indexOf (item :Object) :int { - return ArrayUtil.indexOf(_array, item); + return Arrays.indexOf(_array, item); } public function isEmpty () :Boolean @@ -85,7 +85,7 @@ public class StreamableArrayList public function remove (item :Object) :Boolean { - return ArrayUtil.removeFirst(_array, item); + return Arrays.removeFirst(_array, item); } public function removeAll (otherList :*) :Boolean