Skip to content

Commit ab01c69

Browse files
authored
Eliminate piracy of convert(LineNumberNode, ::LineInfoNode)
1 parent bf0a1ef commit ab01c69

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/utils.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,6 @@ end
168168
fileline(lin::LineInfoNode) = String(lin.file), lin.line
169169
fileline(lnn::LineNumberNode) = String(lnn.file), lnn.line
170170

171-
# This is piracy, but it's not ambiguous in terms of what it should do
172-
Base.convert(::Type{LineNumberNode}, lin::LineInfoNode) = LineNumberNode(lin.line, lin.file)
173-
174171
# This regex matches the pseudo-file name of a REPL history entry.
175172
const rREPL = r"^REPL\[(\d+)\]$"
176173
# Match anonymous function names

0 commit comments

Comments
 (0)