aboutsummaryrefslogtreecommitdiff
path: root/common/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/util.cpp')
-rw-r--r--common/util.cpp19
1 files changed, 4 insertions, 15 deletions
diff --git a/common/util.cpp b/common/util.cpp
index 6ab9f9d7d4..f04b403e19 100644
--- a/common/util.cpp
+++ b/common/util.cpp
@@ -59,6 +59,10 @@ String StringTokenizer::nextToken() {
return String(_str.c_str() + _tokenBegin, _tokenEnd - _tokenBegin);
}
+
+#pragma mark -
+
+
//
// Print hexdump of the data passed in
//
@@ -111,21 +115,6 @@ void hexdump(const byte * data, int len, int bytesPerLine, int startOffset) {
printf("|\n");
}
-String tag2string(uint32 tag) {
- char str[5];
- str[0] = (char)(tag >> 24);
- str[1] = (char)(tag >> 16);
- str[2] = (char)(tag >> 8);
- str[3] = (char)tag;
- str[4] = '\0';
- // Replace non-printable chars by dot
- for (int i = 0; i < 4; ++i) {
- if (!isprint((unsigned char)str[i]))
- str[i] = '.';
- }
- return Common::String(str);
-}
-
#pragma mark -