diff options
| author | gameboyprinter <gameboyprinter@users.noreply.github.com> | 2018-08-28 20:53:45 -0500 |
|---|---|---|
| committer | gameboyprinter <gameboyprinter@users.noreply.github.com> | 2018-08-28 20:53:45 -0500 |
| commit | 355bd1dbbb0d2fe6da4292aa9681a2a152592b7d (patch) | |
| tree | 3492c49525f9a0f362707d2b56d51693c03a7048 | |
| parent | 68a3f35fb0a39a57d50c3d3098710c667a166477 (diff) | |
Update gitignore; remove unused function
| -rw-r--r-- | hex_functions.cpp | 51 | ||||
| -rw-r--r-- | hex_functions.h | 1 |
2 files changed, 1 insertions, 51 deletions
diff --git a/hex_functions.cpp b/hex_functions.cpp index 683097ee..3bb535b1 100644 --- a/hex_functions.cpp +++ b/hex_functions.cpp @@ -1,56 +1,7 @@ -//WELCOME TO THE EXTREMELY GHETTO HEX CONVERSION KLUDGE BECAUSE I COULDNT MAKE ANYTHING ELSE WORK - #include "hex_functions.h" namespace omni { - // This might be unused but I don't care to search the entire source code - // So it will remain here (lol) - // The actual int to hex conversion is now done properly - char halfword_to_hex_char(unsigned int input) - { - if (input > 127) - return 'F'; - - switch (input) - { - case 0: - return '0'; - case 1: - return '1'; - case 2: - return '2'; - case 3: - return '3'; - case 4: - return '4'; - case 5: - return '5'; - case 6: - return '6'; - case 7: - return '7'; - case 8: - return '8'; - case 9: - return '9'; - case 10: - return 'A'; - case 11: - return 'B'; - case 12: - return 'C'; - case 13: - return 'D'; - case 14: - return 'E'; - case 15: - return 'F'; - default: - return 'F'; - } - } - std::string int_to_hex(unsigned int input) { if (input > 255) @@ -64,4 +15,4 @@ namespace omni return result; } -} //namespace omni +} diff --git a/hex_functions.h b/hex_functions.h index 1f22339c..285f096a 100644 --- a/hex_functions.h +++ b/hex_functions.h @@ -11,7 +11,6 @@ namespace omni { - char halfword_to_hex_char(unsigned int input); std::string int_to_hex(unsigned int input); } |
