mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Tidy Json:
* Remove unused code. * Rename .inl file to .cpp. * Remove duplicate macros.
This commit is contained in:
committed by
Nik Bougalis
parent
57689c4e66
commit
7ef6e58024
@@ -30,34 +30,6 @@ const Int Value::minInt = Int ( ~ (UInt (-1) / 2) );
|
||||
const Int Value::maxInt = Int ( UInt (-1) / 2 );
|
||||
const UInt Value::maxUInt = UInt (-1);
|
||||
|
||||
// A "safe" implementation of strdup. Allow null pointer to be passed.
|
||||
// Also avoid warning on msvc80.
|
||||
//
|
||||
//inline char *safeStringDup( const char *czstring )
|
||||
//{
|
||||
// if ( czstring )
|
||||
// {
|
||||
// const size_t length = (unsigned int)( strlen(czstring) + 1 );
|
||||
// char *newString = static_cast<char *>( malloc( length ) );
|
||||
// memcpy( newString, czstring, length );
|
||||
// return newString;
|
||||
// }
|
||||
// return 0;
|
||||
//}
|
||||
//
|
||||
//inline char *safeStringDup( std::string const&str )
|
||||
//{
|
||||
// if ( !str.empty() )
|
||||
// {
|
||||
// const size_t length = str.length();
|
||||
// char *newString = static_cast<char *>( malloc( length + 1 ) );
|
||||
// memcpy( newString, str.c_str(), length );
|
||||
// newString[length] = 0;
|
||||
// return newString;
|
||||
// }
|
||||
// return 0;
|
||||
//}
|
||||
|
||||
ValueAllocator::~ValueAllocator ()
|
||||
{
|
||||
}
|
||||
@@ -116,18 +88,6 @@ static struct DummyValueAllocatorInitializer
|
||||
}
|
||||
} dummyValueAllocatorInitializer;
|
||||
|
||||
|
||||
|
||||
// //////////////////////////////////////////////////////////////////
|
||||
// //////////////////////////////////////////////////////////////////
|
||||
// //////////////////////////////////////////////////////////////////
|
||||
// ValueInternals...
|
||||
// //////////////////////////////////////////////////////////////////
|
||||
// //////////////////////////////////////////////////////////////////
|
||||
// //////////////////////////////////////////////////////////////////
|
||||
# include <ripple/json/impl/json_valueiterator.inl>
|
||||
|
||||
|
||||
// //////////////////////////////////////////////////////////////////
|
||||
// //////////////////////////////////////////////////////////////////
|
||||
// //////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user