diff --git a/src/ConstructionBase.jl b/src/ConstructionBase.jl index f4605c6..3f4a788 100644 --- a/src/ConstructionBase.jl +++ b/src/ConstructionBase.jl @@ -39,15 +39,6 @@ struct NamedTupleConstructor{names} end end end -function assert_hasfields(T, fnames) - for fname in fnames - if !(fname in fieldnames(T)) - msg = "$T has no field $fname" - throw(ArgumentError(msg)) - end - end -end - function setproperties(obj; kw...) setproperties(obj, (;kw...)) end