Skip to content

Commit

Permalink
Remove unnecessary import of Core.Ref
Browse files Browse the repository at this point in the history
  • Loading branch information
jmert committed Oct 29, 2020
1 parent 2055b28 commit 42060a0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/macros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ macro defconstants(prefix::Symbol, expr::Expr)
end

# Build expressions to import all necessary types from the parent module.
push!(imports, :Ref) # explicitly add `Ref`
imports = Expr[Expr(:(.), :(.), :(.), sym) for sym in unique!(imports)]
# Push the imports into the definition body
pushfirst!(defbody, Expr(:import, imports...))
Expand Down

0 comments on commit 42060a0

Please sign in to comment.