From f16465c614bfbae85358634aa5de90464171509c Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sat, 4 Sep 2021 22:48:08 +0200 Subject: [PATCH] :rotating_light: fix warnings --- test/src/unit-bon8.cpp | 78 ------------------------------------------ 1 file changed, 78 deletions(-) diff --git a/test/src/unit-bon8.cpp b/test/src/unit-bon8.cpp index 253f6d51f..ca6c90401 100644 --- a/test/src/unit-bon8.cpp +++ b/test/src/unit-bon8.cpp @@ -38,84 +38,6 @@ using nlohmann::json; #include #include "test_utils.hpp" -namespace -{ -class SaxCountdown -{ - public: - explicit SaxCountdown(const int count) : events_left(count) - {} - - bool null() - { - return events_left-- > 0; - } - - bool boolean(bool /*unused*/) - { - return events_left-- > 0; - } - - bool number_integer(json::number_integer_t /*unused*/) - { - return events_left-- > 0; - } - - bool number_unsigned(json::number_unsigned_t /*unused*/) - { - return events_left-- > 0; - } - - bool number_float(json::number_float_t /*unused*/, const std::string& /*unused*/) - { - return events_left-- > 0; - } - - bool string(std::string& /*unused*/) - { - return events_left-- > 0; - } - - bool binary(std::vector& /*unused*/) - { - return events_left-- > 0; - } - - bool start_object(std::size_t /*unused*/) - { - return events_left-- > 0; - } - - bool key(std::string& /*unused*/) - { - return events_left-- > 0; - } - - bool end_object() - { - return events_left-- > 0; - } - - bool start_array(std::size_t /*unused*/) - { - return events_left-- > 0; - } - - bool end_array() - { - return events_left-- > 0; - } - - bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/, const json::exception& /*unused*/) // NOLINT(readability-convert-member-functions-to-static) - { - return false; - } - - private: - int events_left = 0; -}; -} // namespace - TEST_CASE("BON8") { SECTION("individual values")