Skip to content

Commit ae8113b

Browse files
committed
rm propertynames
1 parent 73d9ece commit ae8113b

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

src/DataBlobs/entities/BlobEntry.jl

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,8 @@ General Data Store Entry.
2626
_version::String = string(_getDFGVersion()) # TBD consider upgrading to ::VersionNumber
2727
end
2828

29-
30-
function Base.propertynames(x::BlobEntry, private::Bool=false)
31-
if private
32-
return fieldnames(BlobEntry)
33-
else
34-
return (:blobId, :originId, :label, :blobstore, :hash, :origin, :description,
35-
:mimeType, :metadata, :timestamp, :_type, :_version)
36-
end
37-
end
38-
3929
StructTypes.StructType(::Type{BlobEntry}) = StructTypes.UnorderedStruct()
4030
StructTypes.idproperty(::Type{BlobEntry}) = :id
4131
StructTypes.omitempties(::Type{BlobEntry}) = (:id,)
4232

43-
44-
4533
_fixtimezone(cts::NamedTuple) = ZonedDateTime(cts.utc_datetime*"+00")

src/entities/DFGVariable.jl

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -120,17 +120,6 @@ Base.@kwdef mutable struct PackedVariableNodeData
120120
_version::String = string(_getDFGVersion())
121121
end
122122

123-
function Base.propertynames(x::PackedVariableNodeData, private::Bool=false)
124-
if private
125-
return fieldnames(PackedVariableNodeData)
126-
else
127-
return (:vecval, :dimval, :vecbw, :dimbw, :BayesNetOutVertIDs,
128-
:dimIDs, :dims, :eliminated, :BayesNetVertID, :separator,
129-
:variableType, :initialized, :infoPerCoord, :ismargin, :dontmargin,
130-
:solveInProgress, :solvedCount, :solveKey, :_version)
131-
end
132-
end
133-
134123
StructTypes.StructType(::Type{PackedVariableNodeData}) = StructTypes.UnorderedStruct()
135124
StructTypes.idproperty(::Type{PackedVariableNodeData}) = :id
136125
StructTypes.omitempties(::Type{PackedVariableNodeData}) = (:id,)
@@ -166,10 +155,6 @@ Base.@kwdef struct MeanMaxPPE <: AbstractPointParametricEst
166155
lastUpdatedTimestamp::Union{ZonedDateTime, Nothing} = nothing
167156
end
168157

169-
function Base.propertynames(x::MeanMaxPPE, private::Bool = false)
170-
return (:solveKey, :suggested, :max, :mean, :_type, :_version)
171-
end
172-
173158
StructTypes.StructType(::Type{MeanMaxPPE}) = StructTypes.UnorderedStruct()
174159
StructTypes.idproperty(::Type{MeanMaxPPE}) = :id
175160
StructTypes.omitempties(::Type{MeanMaxPPE}) = (:id,:createdTimestamp,:lastUpdatedTimestamp)

0 commit comments

Comments
 (0)