Skip to content

Commit

Permalink
remove assert_hasfields
Browse files Browse the repository at this point in the history
  • Loading branch information
jw3126 committed Oct 2, 2019
1 parent 90fa8fe commit 2a004c1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/ConstructionBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a004c1

Please sign in to comment.