Skip to content

Commit cb32020

Browse files
authored
remove unused macros __FILE_SYMBOL__ and get! (#34611)
1 parent 421ef20 commit cb32020

File tree

3 files changed

+1
-14
lines changed

3 files changed

+1
-14
lines changed

base/dict.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -463,14 +463,6 @@ function get!(default::Callable, h::Dict{K,V}, key::K) where V where K
463463
return v
464464
end
465465

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

475467
function getindex(h::Dict{K,V}, key) where V where K
476468
index = ht_keyindex(h, key)

base/essentials.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -797,11 +797,6 @@ macro __LINE__()
797797
return __source__.line
798798
end
799799

800-
# Just for bootstrapping purposes below
801-
macro __FILE_SYMBOL__()
802-
return Expr(:quote, __source__.file)
803-
end
804-
805800
# Iteration
806801
"""
807802
isdone(itr, state...) -> Union{Bool, Missing}

stdlib/SparseArrays/src/SparseArrays.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import LinearAlgebra: mul!, ldiv!, rdiv!, cholesky, adjoint!, diag, eigen, dot,
1515
issymmetric, istril, istriu, lu, tr, transpose!, tril!, triu!,
1616
cond, diagm, factorize, ishermitian, norm, opnorm, lmul!, rmul!, tril, triu, matprod
1717

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

0 commit comments

Comments
 (0)