Avoid copying and improve optimization opportunities

This commit is contained in:
Nik Bougalis
2015-03-27 13:35:57 -07:00
committed by Tom Ritchford
parent b4058a813b
commit f072b5b679
5 changed files with 22 additions and 23 deletions

View File

@@ -19,22 +19,9 @@
#include <BeastConfig.h>
#include <algorithm>
namespace ripple {
char charHex (int iDigit)
{
if (iDigit >= 0)
{
if(iDigit < 10)
return '0' + iDigit;
if(iDigit < 16)
return 'A' - 10 + iDigit;
}
return 0;
}
int charUnHex (unsigned char c)
{
struct HexTab