Skip to content

Commit eae4554

Browse files
committed
rm old deprecations
1 parent 0a65ef2 commit eae4554

File tree

1 file changed

+5
-22
lines changed

1 file changed

+5
-22
lines changed

src/services/Serialization.jl

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,7 @@ function unpackVariable(dfg::G,
231231

232232
smallData = JSON2.read(packedProps["smallData"], Dict{Symbol, SmallDataTypes})
233233

234-
variableTypeString = if haskey(packedProps, "softtype")
235-
# TODO Deprecate, remove in v0.12
236-
@warn "Packed field `softtype` is deprecated and replaced with `variableType`"
237-
packedProps["softtype"]
238-
else
239-
packedProps["variableType"]
240-
end
234+
variableTypeString = packedProps["variableType"]
241235

242236
variableType = getTypeFromSerializationModule(variableTypeString)
243237
isnothing(variableType) && error("Cannot deserialize variableType '$variableTypeString' in variable '$label'")
@@ -267,23 +261,12 @@ function unpackVariable(dfg::G,
267261
# Now rehydrate complete DataEntry type.
268262
if unpackBigData
269263
#TODO Deprecate - for backward compatibility between v0.8 and v0.9, remove in v0.10
270-
if haskey(packedProps, "bigDataElemType")
271-
@warn "`bigDataElemType` is deprecate, please save data again with new version that uses `dataEntryType`"
272-
dataElemTypes = JSON2.read(packedProps["bigDataElemType"], Dict{Symbol, Symbol})
273-
else
274-
dataElemTypes = JSON2.read(packedProps["dataEntryType"], Dict{Symbol, Symbol})
275-
for (k,name) in dataElemTypes
276-
dataElemTypes[k] = Symbol(split(string(name), '.')[end])
277-
end
264+
dataElemTypes = JSON2.read(packedProps["dataEntryType"], Dict{Symbol, Symbol})
265+
for (k,name) in dataElemTypes
266+
dataElemTypes[k] = Symbol(split(string(name), '.')[end])
278267
end
279268

280-
#TODO Deprecate - for backward compatibility between v0.8 and v0.9, remove in v0.10
281-
if haskey(packedProps, "bigData")
282-
@warn "`bigData` is deprecate, please save data again with new version"
283-
dataIntermed = JSON2.read(packedProps["bigData"], Dict{Symbol, String})
284-
else
285-
dataIntermed = JSON2.read(packedProps["dataEntry"], Dict{Symbol, String})
286-
end
269+
dataIntermed = JSON2.read(packedProps["dataEntry"], Dict{Symbol, String})
287270

288271
for (k,bdeInter) in dataIntermed
289272
interm = JSON.parse(bdeInter)

0 commit comments

Comments
 (0)