Skip to content

Commit fd15694

Browse files
vtjnashElOceanografo
authored andcommitted
remove UndefVarError deprecation from v0.5 (JuliaLang#40333)
Looks like this got lost in deprecation removal?
1 parent 0862cf0 commit fd15694

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

base/errorshow.jl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -163,16 +163,6 @@ function showerror(io::IO, ex::UndefVarError)
163163
Experimental.show_error_hints(io, ex)
164164
end
165165

166-
Experimental.register_error_hint(UndefVarError) do io::IO, ex::UndefVarError
167-
if ex.var in [:UTF16String, :UTF32String, :WString, :utf16, :utf32, :wstring, :RepString]
168-
println(io)
169-
print(io, """
170-
`$(ex.var)` has been moved to the package LegacyStrings.jl:
171-
Run Pkg.add("LegacyStrings") to install LegacyStrings on Julia v0.5-;
172-
Then do `using LegacyStrings` to get `$(ex.var)`.""")
173-
end
174-
end
175-
176166
function showerror(io::IO, ex::InexactError)
177167
print(io, "InexactError: ", ex.func, '(')
178168
nameof(ex.T) === ex.func || print(io, ex.T, ", ")

test/errorshow.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,5 +796,3 @@ if Sys.isapple() || (Sys.islinux() && Sys.ARCH === :x86_64)
796796
end
797797
end
798798
end # Sys.isapple()
799-
800-
@test contains(sprint(Base.showerror, UndefVarError(:UTF16String)), "LegacyStrings")

0 commit comments

Comments
 (0)