This was never used.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4547 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user