From 61f02431eedee2cd09a0800fa0ad06c746424d42 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 4 Dec 2011 15:49:29 +0100 Subject: [PATCH] Removed ConvertUInt{8,16} - ConvertUInt32 handles their input instead. --- libmaxsi/format.cpp | 34 ---------------------------------- libmaxsi/hsrc/string.h | 2 -- 2 files changed, 36 deletions(-) diff --git a/libmaxsi/format.cpp b/libmaxsi/format.cpp index e4561f1d..26e5dfd4 100644 --- a/libmaxsi/format.cpp +++ b/libmaxsi/format.cpp @@ -30,38 +30,6 @@ namespace Maxsi { namespace String { - int ConvertUInt8(uint8_t Num, char* Dest) - { - uint8_t Copy = Num; - int Result = 0; - - while ( Copy > 9 ) { Copy /= 10; Result++; } - - int Offset = Result; - while ( Offset >= 0 ) - { - Dest[Offset] = '0' + Num % 10; Num /= 10; Offset--; - } - - return Result + 1; - } - - int ConvertUInt16(uint16_t Num, char* Dest) - { - uint16_t Copy = Num; - int Result = 0; - - while ( Copy > 9 ) { Copy /= 10; Result++; } - - int Offset = Result; - while ( Offset >= 0 ) - { - Dest[Offset] = '0' + Num % 10; Num /= 10; Offset--; - } - - return Result + 1; - } - int ConvertUInt32(uint32_t Num, char* Dest) { uint32_t Copy = Num; @@ -94,8 +62,6 @@ namespace Maxsi return Result + 1; } - // Missing functions here. - int ConvertUInt3216(uint32_t Num, char* Dest) { uint32_t Copy = Num; diff --git a/libmaxsi/hsrc/string.h b/libmaxsi/hsrc/string.h index 58c3c600..37b447cb 100644 --- a/libmaxsi/hsrc/string.h +++ b/libmaxsi/hsrc/string.h @@ -41,8 +41,6 @@ namespace Maxsi bool StartsWith(const char* Haystack, const char* Needle); int ToInt(const char* str); - int ConvertUInt8T(uint8_t num, char* dest); - int ConvertUInt16(uint16_t num, char* dest); int ConvertUInt32(uint32_t num, char* dest); int ConvertUInt64(uint64_t num, char* dest); }