forked from bblanchon/ArduinoJson
Remove obsolete comments
This commit is contained in:
1 parent
30ea01bc31
commit
9b34069a3b
4 files changed
-17
No files matched your search
@@ -104,21 +104,18 @@ class JsonArray : public detail::VariantOperators<JsonArray> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Removes the element at the specified iterator.
|
// Removes the element at the specified iterator.
|
||||||
// ⚠️ Doesn't release the memory associated with the removed element.
|
|
||||||
// https://arduinojson.org/v7/api/jsonarray/remove/
|
// https://arduinojson.org/v7/api/jsonarray/remove/
|
||||||
FORCE_INLINE void remove(iterator it) const {
|
FORCE_INLINE void remove(iterator it) const {
|
||||||
detail::ArrayData::remove(data_, it.iterator_, resources_);
|
detail::ArrayData::remove(data_, it.iterator_, resources_);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Removes the element at the specified index.
|
// Removes the element at the specified index.
|
||||||
// ⚠️ Doesn't release the memory associated with the removed element.
|
|
||||||
// https://arduinojson.org/v7/api/jsonarray/remove/
|
// https://arduinojson.org/v7/api/jsonarray/remove/
|
||||||
FORCE_INLINE void remove(size_t index) const {
|
FORCE_INLINE void remove(size_t index) const {
|
||||||
detail::ArrayData::removeElement(data_, index, resources_);
|
detail::ArrayData::removeElement(data_, index, resources_);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Removes all the elements of the array.
|
// Removes all the elements of the array.
|
||||||
// ⚠️ Doesn't release the memory associated with the removed elements.
|
|
||||||
// https://arduinojson.org/v7/api/jsonarray/clear/
|
// https://arduinojson.org/v7/api/jsonarray/clear/
|
||||||
void clear() const {
|
void clear() const {
|
||||||
detail::ArrayData::clear(data_, resources_);
|
detail::ArrayData::clear(data_, resources_);
|
||||||
|
|||||||
@@ -251,14 +251,12 @@ class JsonDocument : public detail::VariantOperators<const JsonDocument&> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Removes an element of the root array.
|
// Removes an element of the root array.
|
||||||
// ⚠️ Doesn't release the memory associated with the removed element.
|
|
||||||
// https://arduinojson.org/v7/api/jsondocument/remove/
|
// https://arduinojson.org/v7/api/jsondocument/remove/
|
||||||
FORCE_INLINE void remove(size_t index) {
|
FORCE_INLINE void remove(size_t index) {
|
||||||
detail::VariantData::removeElement(getData(), index, getResourceManager());
|
detail::VariantData::removeElement(getData(), index, getResourceManager());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Removes a member of the root object.
|
// Removes a member of the root object.
|
||||||
// ⚠️ Doesn't release the memory associated with the removed element.
|
|
||||||
// https://arduinojson.org/v7/api/jsondocument/remove/
|
// https://arduinojson.org/v7/api/jsondocument/remove/
|
||||||
template <typename TChar>
|
template <typename TChar>
|
||||||
FORCE_INLINE typename detail::enable_if<detail::IsString<TChar*>::value>::type
|
FORCE_INLINE typename detail::enable_if<detail::IsString<TChar*>::value>::type
|
||||||
@@ -268,7 +266,6 @@ class JsonDocument : public detail::VariantOperators<const JsonDocument&> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Removes a member of the root object.
|
// Removes a member of the root object.
|
||||||
// ⚠️ Doesn't release the memory associated with the removed element.
|
|
||||||
// https://arduinojson.org/v7/api/jsondocument/remove/
|
// https://arduinojson.org/v7/api/jsondocument/remove/
|
||||||
template <typename TString>
|
template <typename TString>
|
||||||
FORCE_INLINE
|
FORCE_INLINE
|
||||||
|
|||||||
@@ -80,7 +80,6 @@ class JsonObject : public detail::VariantOperators<JsonObject> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Removes all the members of the object.
|
// Removes all the members of the object.
|
||||||
// ⚠️ Doesn't release the memory associated with the removed members.
|
|
||||||
// https://arduinojson.org/v7/api/jsonobject/clear/
|
// https://arduinojson.org/v7/api/jsonobject/clear/
|
||||||
void clear() const {
|
void clear() const {
|
||||||
detail::ObjectData::clear(data_, resources_);
|
detail::ObjectData::clear(data_, resources_);
|
||||||
@@ -122,14 +121,12 @@ class JsonObject : public detail::VariantOperators<JsonObject> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Removes the member at the specified iterator.
|
// Removes the member at the specified iterator.
|
||||||
// ⚠️ Doesn't release the memory associated with the removed member.
|
|
||||||
// https://arduinojson.org/v7/api/jsonobject/remove/
|
// https://arduinojson.org/v7/api/jsonobject/remove/
|
||||||
FORCE_INLINE void remove(iterator it) const {
|
FORCE_INLINE void remove(iterator it) const {
|
||||||
detail::ObjectData::remove(data_, it.iterator_, resources_);
|
detail::ObjectData::remove(data_, it.iterator_, resources_);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Removes the member with the specified key.
|
// Removes the member with the specified key.
|
||||||
// ⚠️ Doesn't release the memory associated with the removed member.
|
|
||||||
// https://arduinojson.org/v7/api/jsonobject/remove/
|
// https://arduinojson.org/v7/api/jsonobject/remove/
|
||||||
template <typename TString>
|
template <typename TString>
|
||||||
FORCE_INLINE void remove(const TString& key) const {
|
FORCE_INLINE void remove(const TString& key) const {
|
||||||
@@ -138,7 +135,6 @@ class JsonObject : public detail::VariantOperators<JsonObject> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Removes the member with the specified key.
|
// Removes the member with the specified key.
|
||||||
// ⚠️ Doesn't release the memory associated with the removed member.
|
|
||||||
// https://arduinojson.org/v7/api/jsonobject/remove/
|
// https://arduinojson.org/v7/api/jsonobject/remove/
|
||||||
template <typename TChar>
|
template <typename TChar>
|
||||||
FORCE_INLINE void remove(TChar* key) const {
|
FORCE_INLINE void remove(TChar* key) const {
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ class VariantRefBase : public VariantTag {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
// Sets the value to null.
|
// Sets the value to null.
|
||||||
// ⚠️ Doesn't release the memory associated with the previous value.
|
|
||||||
// https://arduinojson.org/v7/api/jsonvariant/clear/
|
// https://arduinojson.org/v7/api/jsonvariant/clear/
|
||||||
FORCE_INLINE void clear() const {
|
FORCE_INLINE void clear() const {
|
||||||
VariantData::setNull(getOrCreateData(), getResourceManager());
|
VariantData::setNull(getOrCreateData(), getResourceManager());
|
||||||
@@ -67,20 +66,17 @@ class VariantRefBase : public VariantTag {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Sets the value to an empty array.
|
// Sets the value to an empty array.
|
||||||
// ⚠️ Doesn't release the memory associated with the previous value.
|
|
||||||
// https://arduinojson.org/v7/api/jsonvariant/to/
|
// https://arduinojson.org/v7/api/jsonvariant/to/
|
||||||
template <typename T>
|
template <typename T>
|
||||||
typename enable_if<is_same<T, JsonArray>::value, JsonArray>::type to() const;
|
typename enable_if<is_same<T, JsonArray>::value, JsonArray>::type to() const;
|
||||||
|
|
||||||
// Sets the value to an empty object.
|
// Sets the value to an empty object.
|
||||||
// ⚠️ Doesn't release the memory associated with the previous value.
|
|
||||||
// https://arduinojson.org/v7/api/jsonvariant/to/
|
// https://arduinojson.org/v7/api/jsonvariant/to/
|
||||||
template <typename T>
|
template <typename T>
|
||||||
typename enable_if<is_same<T, JsonObject>::value, JsonObject>::type to()
|
typename enable_if<is_same<T, JsonObject>::value, JsonObject>::type to()
|
||||||
const;
|
const;
|
||||||
|
|
||||||
// Sets the value to null.
|
// Sets the value to null.
|
||||||
// ⚠️ Doesn't release the memory associated with the previous value.
|
|
||||||
// https://arduinojson.org/v7/api/jsonvariant/to/
|
// https://arduinojson.org/v7/api/jsonvariant/to/
|
||||||
template <typename T>
|
template <typename T>
|
||||||
typename enable_if<is_same<T, JsonVariant>::value, JsonVariant>::type to()
|
typename enable_if<is_same<T, JsonVariant>::value, JsonVariant>::type to()
|
||||||
@@ -165,14 +161,12 @@ class VariantRefBase : public VariantTag {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Removes an element of the array.
|
// Removes an element of the array.
|
||||||
// ⚠️ Doesn't release the memory associated with the removed element.
|
|
||||||
// https://arduinojson.org/v7/api/jsonvariant/remove/
|
// https://arduinojson.org/v7/api/jsonvariant/remove/
|
||||||
FORCE_INLINE void remove(size_t index) const {
|
FORCE_INLINE void remove(size_t index) const {
|
||||||
VariantData::removeElement(getData(), index, getResourceManager());
|
VariantData::removeElement(getData(), index, getResourceManager());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Removes a member of the object.
|
// Removes a member of the object.
|
||||||
// ⚠️ Doesn't release the memory associated with the removed element.
|
|
||||||
// https://arduinojson.org/v7/api/jsonvariant/remove/
|
// https://arduinojson.org/v7/api/jsonvariant/remove/
|
||||||
template <typename TChar>
|
template <typename TChar>
|
||||||
FORCE_INLINE typename enable_if<IsString<TChar*>::value>::type remove(
|
FORCE_INLINE typename enable_if<IsString<TChar*>::value>::type remove(
|
||||||
@@ -182,7 +176,6 @@ class VariantRefBase : public VariantTag {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Removes a member of the object.
|
// Removes a member of the object.
|
||||||
// ⚠️ Doesn't release the memory associated with the removed element.
|
|
||||||
// https://arduinojson.org/v7/api/jsonvariant/remove/
|
// https://arduinojson.org/v7/api/jsonvariant/remove/
|
||||||
template <typename TString>
|
template <typename TString>
|
||||||
FORCE_INLINE typename enable_if<IsString<TString>::value>::type remove(
|
FORCE_INLINE typename enable_if<IsString<TString>::value>::type remove(
|
||||||
|
|||||||
Reference in new issue
Block a user