Skip to content

Commit

Permalink
feat: remove generic metadata unpacker
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Dec 20, 2024
1 parent 175b3d6 commit e63317c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Expression.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import ..SimplifyModule: combine_operators, simplify_tree!
struct Metadata{NT<:NamedTuple}
_data::NT
end
unpack_metadata(x) = x # Fallback for when the user doesn't use the Metadata type
unpack_metadata(x::Metadata) = getfield(x, :_data)

Base.propertynames(x::Metadata) = propertynames(unpack_metadata(x))
Expand Down

0 comments on commit e63317c

Please sign in to comment.