forked from bblanchon/ArduinoJson
Remove shallowCopy()
This commit is contained in:
1 parent
c37990d791
commit
39e8b63746
7 files changed
+1
-129
No files matched your search
@@ -106,18 +106,6 @@ class VariantRefBase : public VariantTag {
|
||||
return Converter<T>::checkJson(getVariantConst());
|
||||
}
|
||||
|
||||
// Shallow copies the specified value.
|
||||
// https://arduinojson.org/v6/api/jsonvariant/shallowcopy/
|
||||
FORCE_INLINE void shallowCopy(ArduinoJson::JsonVariantConst target) {
|
||||
VariantData* data = getOrCreateData();
|
||||
if (!data)
|
||||
return;
|
||||
data->setNull(getResourceManager());
|
||||
const VariantData* targetData = VariantAttorney::getData(target);
|
||||
if (targetData)
|
||||
*data = *targetData;
|
||||
}
|
||||
|
||||
// Copies the specified value.
|
||||
// https://arduinojson.org/v6/api/jsonvariant/set/
|
||||
template <typename T>
|
||||
|
||||
Reference in new issue
Block a user