From 6cdf7deb4eb900f17efac05e701cc6b588f795f6 Mon Sep 17 00:00:00 2001 From: Leo Davis Date: Tue, 19 Nov 2019 12:23:03 -0700 Subject: [PATCH] Remove default from switches where all cases are covered. --- include/cpptoml.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/cpptoml.h b/include/cpptoml.h index 5a00da3..a7250c8 100644 --- a/include/cpptoml.h +++ b/include/cpptoml.h @@ -2305,8 +2305,6 @@ class parser return parse_array(it, end); case parse_type::INLINE_TABLE: return parse_inline_table(it, end); - default: - throw_parse_exception("Failed to parse value"); } } @@ -3036,8 +3034,6 @@ class parser case parse_type::INLINE_TABLE: return parse_object_array( &parser::parse_inline_table, '{', it, end); - default: - throw_parse_exception("Unable to parse array"); } }