Merge pull request #103 from bitshares/jmj_995
Remove unnecessary asserts
This commit is contained in:
commit
87260fe0e1
3 changed files with 0 additions and 8 deletions
|
|
@ -25,7 +25,6 @@ namespace fc {
|
|||
--_max_depth;
|
||||
unsigned_int size; unpack( s, size, _max_depth );
|
||||
value.clear();
|
||||
FC_ASSERT( size.value*sizeof(T) < MAX_ARRAY_ALLOC_SIZE );
|
||||
value.reserve( std::min( size.value, FC_MAX_PREALLOC_SIZE ) );
|
||||
for( uint32_t i = 0; i < size.value; ++i )
|
||||
{
|
||||
|
|
@ -53,7 +52,6 @@ namespace fc {
|
|||
--_max_depth;
|
||||
unsigned_int size; unpack( s, size, _max_depth );
|
||||
value.clear();
|
||||
FC_ASSERT( size.value*(sizeof(K)+sizeof(V)) < MAX_ARRAY_ALLOC_SIZE );
|
||||
value.reserve( std::min( size.value, FC_MAX_PREALLOC_SIZE ) );
|
||||
for( uint32_t i = 0; i < size.value; ++i )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -428,7 +428,6 @@ namespace fc {
|
|||
--_max_depth;
|
||||
unsigned_int size; fc::raw::unpack( s, size, _max_depth );
|
||||
value.clear();
|
||||
FC_ASSERT( size.value*sizeof(T) < MAX_ARRAY_ALLOC_SIZE );
|
||||
value.reserve( std::min( size.value, FC_MAX_PREALLOC_SIZE ) );
|
||||
for( uint32_t i = 0; i < size.value; ++i )
|
||||
{
|
||||
|
|
@ -474,7 +473,6 @@ namespace fc {
|
|||
--_max_depth;
|
||||
unsigned_int size; fc::raw::unpack( s, size, _max_depth );
|
||||
value.clear();
|
||||
FC_ASSERT( size.value*(sizeof(K)+sizeof(V)) < MAX_ARRAY_ALLOC_SIZE );
|
||||
value.reserve( std::min( size.value, FC_MAX_PREALLOC_SIZE ) );
|
||||
for( uint32_t i = 0; i < size.value; ++i )
|
||||
{
|
||||
|
|
@ -502,7 +500,6 @@ namespace fc {
|
|||
--_max_depth;
|
||||
unsigned_int size; fc::raw::unpack( s, size, _max_depth );
|
||||
value.clear();
|
||||
FC_ASSERT( size.value*(sizeof(K)+sizeof(V)) < MAX_ARRAY_ALLOC_SIZE );
|
||||
for( uint32_t i = 0; i < size.value; ++i )
|
||||
{
|
||||
std::pair<K,V> tmp;
|
||||
|
|
@ -529,7 +526,6 @@ namespace fc {
|
|||
FC_ASSERT( _max_depth > 0 );
|
||||
--_max_depth;
|
||||
unsigned_int size; fc::raw::unpack( s, size, _max_depth );
|
||||
FC_ASSERT( size.value*sizeof(T) < MAX_ARRAY_ALLOC_SIZE );
|
||||
value.resize( std::min( size.value, FC_MAX_PREALLOC_SIZE ) );
|
||||
for( uint64_t i = 0; i < size; i++ )
|
||||
{
|
||||
|
|
@ -557,7 +553,6 @@ namespace fc {
|
|||
FC_ASSERT( _max_depth > 0 );
|
||||
--_max_depth;
|
||||
unsigned_int size; fc::raw::unpack( s, size, _max_depth );
|
||||
FC_ASSERT( size.value*sizeof(T) < MAX_ARRAY_ALLOC_SIZE );
|
||||
value.resize( std::min( size.value, FC_MAX_PREALLOC_SIZE ) );
|
||||
for( uint64_t i = 0; i < size; i++ )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -143,7 +143,6 @@ namespace fc { namespace raw {
|
|||
--_max_depth;
|
||||
unsigned_int vs;
|
||||
unpack( s, vs, _max_depth );
|
||||
FC_ASSERT( vs.value*sizeof(variant_object::entry) < MAX_ARRAY_ALLOC_SIZE );
|
||||
mutable_variant_object mvo;
|
||||
mvo.reserve( std::min( vs.value, FC_MAX_PREALLOC_SIZE ) );
|
||||
for( uint32_t i = 0; i < vs.value; ++i )
|
||||
|
|
|
|||
Loading…
Reference in a new issue