# HG changeset patch # User David Demelier # Date 1444115153 -7200 # Node ID 25ef13e25338a749fb717669c7fef336866d8660 # Parent d485d36a8de1b95c7080ecd5c3588da65f6c4372 Json: remove undefined, not part of JSON spec diff -r d485d36a8de1 -r 25ef13e25338 C++/modules/Json/Json.h --- a/C++/modules/Json/Json.h Mon Oct 05 20:24:48 2015 +0200 +++ b/C++/modules/Json/Json.h Tue Oct 06 09:05:53 2015 +0200 @@ -48,8 +48,7 @@ Real, //!< Value is float Object, //!< Value is object {} String, //!< Value is unicode string - Null, //!< Value is defined to null - Undefined //!< Value is undefined + Null //!< Value is defined to null }; /** @@ -101,10 +100,10 @@ public: /** - * Construct an undefined value. + * Construct a null value. */ inline Value() noexcept - : m_type{Type::Undefined} + : m_type{Type::Null} { } @@ -467,16 +466,6 @@ } /** - * Check if the value is undefined type. - * - * @return true if undefined - */ - inline bool isUndefined() const noexcept - { - return m_type == Type::Undefined; - } - - /** * Check if the value is string type. * * @return true if string diff -r d485d36a8de1 -r 25ef13e25338 C++/tests/Json/main.cpp --- a/C++/tests/Json/main.cpp Mon Oct 05 20:24:48 2015 +0200 +++ b/C++/tests/Json/main.cpp Tue Oct 06 09:05:53 2015 +0200 @@ -83,17 +83,6 @@ * json::Value constructors * -------------------------------------------------------- */ -TEST(Constructors, undefined) -{ - try { - json::Value value; - - ASSERT_TRUE(value.isUndefined()); - } catch (const json::Error &ex) { - FAIL() << ex.what(); - } -} - TEST(Constructors, null) { try {