diff --git a/stdlib/Manifest.toml b/stdlib/Manifest.toml index 858e5ea6513393..4e4f48b4e6af4c 100644 --- a/stdlib/Manifest.toml +++ b/stdlib/Manifest.toml @@ -191,7 +191,6 @@ uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7" version = "1.11.0" [[deps.Profile]] -deps = ["Unicode"] uuid = "9abbd945-dff8-562f-b5e8-e1ebf5ef1b79" version = "1.11.0" diff --git a/stdlib/Profile/Project.toml b/stdlib/Profile/Project.toml index ede7ccd66bc8ed..ad0107ecf94043 100644 --- a/stdlib/Profile/Project.toml +++ b/stdlib/Profile/Project.toml @@ -2,12 +2,6 @@ name = "Profile" uuid = "9abbd945-dff8-562f-b5e8-e1ebf5ef1b79" version = "1.11.0" -[deps] -Unicode = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5" - -[compat] -Unicode = "1.11.0" - [extras] Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" Logging = "56ddb016-857b-54e1-b83d-db4d58db5568" diff --git a/stdlib/Profile/src/heapsnapshot_reassemble.jl b/stdlib/Profile/src/heapsnapshot_reassemble.jl index 27d7d12318ed18..50da13e550d820 100644 --- a/stdlib/Profile/src/heapsnapshot_reassemble.jl +++ b/stdlib/Profile/src/heapsnapshot_reassemble.jl @@ -2,8 +2,6 @@ module HeapSnapshot -using Unicode - """ assemble_snapshot(filepath::AbstractString, out_file::AbstractString) @@ -236,7 +234,7 @@ function print_str_escape_json(stream::IO, s::AbstractString) print(stream, "\\t") elseif '\x00' <= c <= '\x1f' print(stream, "\\u", lpad(string(UInt16(c), base=16), 4, '0')) - elseif !Unicode.isassigned(c) + elseif !isvalid(c) # we have to do this because vscode's viewer doesn't like the replace character print(stream, "[invalid unicode character]") else