Skip to content

Commit

Permalink
remove unused macros __FILE_SYMBOL__ and get! (#34611)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Feb 1, 2020
1 parent 421ef20 commit cb32020
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
8 changes: 0 additions & 8 deletions base/dict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -463,14 +463,6 @@ function get!(default::Callable, h::Dict{K,V}, key::K) where V where K
return v
end

# NOTE: this macro is trivial, and should
# therefore not be exported as-is: it's for internal use only.
macro get!(h, key0, default)
return quote
get!(()->$(esc(default)), $(esc(h)), $(esc(key0)))
end
end


function getindex(h::Dict{K,V}, key) where V where K
index = ht_keyindex(h, key)
Expand Down
5 changes: 0 additions & 5 deletions base/essentials.jl
Original file line number Diff line number Diff line change
Expand Up @@ -797,11 +797,6 @@ macro __LINE__()
return __source__.line
end

# Just for bootstrapping purposes below
macro __FILE_SYMBOL__()
return Expr(:quote, __source__.file)
end

# Iteration
"""
isdone(itr, state...) -> Union{Bool, Missing}
Expand Down
2 changes: 1 addition & 1 deletion stdlib/SparseArrays/src/SparseArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import LinearAlgebra: mul!, ldiv!, rdiv!, cholesky, adjoint!, diag, eigen, dot,
issymmetric, istril, istriu, lu, tr, transpose!, tril!, triu!,
cond, diagm, factorize, ishermitian, norm, opnorm, lmul!, rmul!, tril, triu, matprod

import Base: @get!, acos, acosd, acot, acotd, acsch, asech, asin, asind, asinh,
import Base: acos, acosd, acot, acotd, acsch, asech, asin, asind, asinh,
atan, atand, atanh, broadcast!, conj!, cos, cosc, cosd, cosh, cospi, cot,
cotd, coth, count, csc, cscd, csch,
exp10, exp2, findprev, findnext, floor, hash, argmin, inv,
Expand Down

0 comments on commit cb32020

Please sign in to comment.