Skip to content

Commit e453e15

Browse files
committed
Remove deprecated internal names (#319)
Maybe we could remove `DEPRECATED_INTERNALNAMES` before tagging a new release.
1 parent e9d85d4 commit e453e15

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/compiler.jl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const INTERNALNAMES = (:__model__, :__context__, :__varinfo__)
2-
const DEPRECATED_INTERNALNAMES = (:_model, :_context, :_varinfo)
32

43
"""
54
isassumption(expr)
@@ -307,15 +306,6 @@ generate_mainbody(mod, expr, warn) = generate_mainbody!(mod, Symbol[], expr, war
307306

308307
generate_mainbody!(mod, found, x, warn) = x
309308
function generate_mainbody!(mod, found, sym::Symbol, warn)
310-
if sym in DEPRECATED_INTERNALNAMES
311-
newsym = Symbol(:_, sym, :__)
312-
Base.depwarn(
313-
"internal variable `$sym` is deprecated, use `$newsym` instead.",
314-
:generate_mainbody!,
315-
)
316-
return generate_mainbody!(mod, found, newsym, warn)
317-
end
318-
319309
if warn && sym in INTERNALNAMES && sym found
320310
@warn "you are using the internal variable `$sym`"
321311
push!(found, sym)

0 commit comments

Comments
 (0)