From 8925db6450f6b49d9a2519b57d9862eec54c58cf Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Wed, 31 Jan 2007 19:56:08 +0000 Subject: [PATCH] Removed toHexString(). It's not needed, as the 'int' class has various formatting functions. These functions can even be called on constants, if you trick the compiler a little bit by wrapping them in parens: trace("hex: " + (4097).toString(16)); git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4522 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/StringUtil.as | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/as/com/threerings/util/StringUtil.as b/src/as/com/threerings/util/StringUtil.as index 2082fe593..cda7760d9 100644 --- a/src/as/com/threerings/util/StringUtil.as +++ b/src/as/com/threerings/util/StringUtil.as @@ -170,18 +170,6 @@ public class StringUtil return array; } - /** - * Return a hex string representation of the specified value. - */ - public static function toHexString (value :uint) :String - { - var str :String = ""; - for (var x :int = 0; x < 8; x++) { - str = HEX[(value >> (x * 4)) & 0xF] + str; - } - return "0x" + str; - } - /** * Generates a string from the supplied bytes that is the hex encoded * representation of those byts. Returns the empty String for a