From 9bef628982fed89e5e4efb6b3eecdd43fcadb91d Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Fri, 24 Mar 2023 20:04:04 -0400 Subject: [PATCH] It is no longer necessary to check separately for trailing content. --- benchmark/json2msgpack/simdjson_ondemand.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/benchmark/json2msgpack/simdjson_ondemand.h b/benchmark/json2msgpack/simdjson_ondemand.h index 673d1f404..83f989cd9 100644 --- a/benchmark/json2msgpack/simdjson_ondemand.h +++ b/benchmark/json2msgpack/simdjson_ondemand.h @@ -100,10 +100,6 @@ simdjson2msgpack::to_msgpack(const simdjson::padded_string &json, recursive_processor_ref(val); #endif } - if (doc.current_location().error() == simdjson::SUCCESS) { - // Example of error detection - this won't be reached on twitter.json in the benchmark. - throw "There are unexpectedly tokens after the end of the json in the json2msgpack sample data"; - } return std::string_view(reinterpret_cast(buf), size_t(buff - buf)); }