forked from bblanchon/ArduinoJson
Remove VariantData::isEnclosed()
This commit is contained in:
1 parent
aba8974148
commit
d9e035a288
2 files changed
+1
-5
No files matched your search
@@ -34,7 +34,7 @@ class JsonDeserializer {
|
||||
|
||||
err = parseVariant(variant, filter, nestingLimit);
|
||||
|
||||
if (!err && latch_.last() != 0 && !variant.isEnclosed()) {
|
||||
if (!err && latch_.last() != 0 && variant.isFloat()) {
|
||||
// We don't detect trailing characters earlier, so we need to check now
|
||||
return DeserializationError::InvalidInput;
|
||||
}
|
||||
|
||||
@@ -147,10 +147,6 @@ class VariantData {
|
||||
return type() == VALUE_IS_NULL;
|
||||
}
|
||||
|
||||
bool isEnclosed() const {
|
||||
return !isFloat();
|
||||
}
|
||||
|
||||
void setBoolean(bool value) {
|
||||
setType(VALUE_IS_BOOLEAN);
|
||||
content_.asBoolean = value;
|
||||
|
||||
Reference in new issue
Block a user