File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -336,10 +336,6 @@ namespace jsoncons {
336
336
case staj_event_type::begin_array:
337
337
{
338
338
T v;
339
- if (cursor.current ().size () > 0 )
340
- {
341
- v.capacity (cursor.current ().size ());
342
- }
343
339
typed_array_visitor<T> visitor (v);
344
340
cursor.read_to (visitor, ec);
345
341
return v;
@@ -379,10 +375,6 @@ namespace jsoncons {
379
375
case staj_event_type::begin_array:
380
376
{
381
377
T v;
382
- if (cursor.current ().size () > 0 )
383
- {
384
- v.capacity (cursor.current ().size ());
385
- }
386
378
typed_array_visitor<T> visitor (v);
387
379
cursor.read_to (visitor, ec);
388
380
return v;
@@ -497,10 +489,6 @@ namespace jsoncons {
497
489
ec = conv_errc::not_map;
498
490
return val;
499
491
}
500
- if (cursor.current ().size () > 0 )
501
- {
502
- val.capacity (cursor.current ().size ());
503
- }
504
492
cursor.next (ec);
505
493
506
494
while (cursor.current ().event_type () != staj_event_type::end_object && !ec)
@@ -545,10 +533,6 @@ namespace jsoncons {
545
533
ec = conv_errc::not_map;
546
534
return val;
547
535
}
548
- if (cursor.current ().size () > 0 )
549
- {
550
- val.capacity (cursor.current ().size ());
551
- }
552
536
cursor.next (ec);
553
537
554
538
while (cursor.current ().event_type () != staj_event_type::end_object && !ec)
You can’t perform that action at this time.
0 commit comments