Removed TestClient, checked in a few inconsequential changes.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4337 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-08-22 20:47:43 +00:00
parent 8996d8da20
commit 98a2c3f4ba
3 changed files with 4 additions and 255 deletions
+1 -9
View File
@@ -15,16 +15,8 @@ public class ArrayUtil
*/
public static function sort (arr :Array) :void
{
// ensure every item is Comparable
if (!arr.every(function (item :*, index :int, array :Array) :Boolean
{
return (item is Comparable);
})) {
throw new Error("Not all elements are Comparable instances.");
}
arr.sort(function (obj1 :Object, obj2 :Object) :int {
return (obj1 as Comparable).compareTo(obj2);
return Comparable(obj1).compareTo(obj2);
});
}