From e404b83531a89d159850183921d56674494c7395 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Sat, 10 Feb 2007 01:27:52 +0000 Subject: [PATCH] This was never used. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4547 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/Util.as | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/as/com/threerings/util/Util.as b/src/as/com/threerings/util/Util.as index d195aa629..da6ab87a3 100644 --- a/src/as/com/threerings/util/Util.as +++ b/src/as/com/threerings/util/Util.as @@ -81,14 +81,5 @@ public class Util return (args.length == 1 && (args[0] is Array)) ? (args[0] as Array) : args; } - - public static function cast (obj :Object, clazz :Class) :Object - { - if (obj == null || obj is clazz) { - return obj; - } else { - throw new TypeError("value is not a " + clazz); - } - } } }