From 8b62d7b10fae46d5393196e10ce8d34ec864f4ff Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Sun, 5 Aug 2018 15:05:27 +0200 Subject: [PATCH 01/16] Remove Dates deprecations. --- base/sysimg.jl | 6 ---- stdlib/Dates/src/deprecated.jl | 48 +------------------------------- stdlib/Dates/test/conversions.jl | 2 +- 3 files changed, 2 insertions(+), 54 deletions(-) diff --git a/base/sysimg.jl b/base/sysimg.jl index 4946e0e763f40..072cbbe466cdc 100644 --- a/base/sysimg.jl +++ b/base/sysimg.jl @@ -551,7 +551,6 @@ end @deprecate_binding Test root_module(Base, :Test) true ", run `using Test` instead" @deprecate_binding Mmap root_module(Base, :Mmap) true ", run `using Mmap` instead" @deprecate_binding Profile root_module(Base, :Profile) true ", run `using Profile` instead" - @deprecate_binding Dates root_module(Base, :Dates) true ", run `using Dates` instead" @deprecate_binding Distributed root_module(Base, :Distributed) true ", run `using Distributed` instead" @deprecate_binding Random root_module(Base, :Random) true ", run `using Random` instead" @deprecate_binding Serializer root_module(Base, :Serialization) true ", run `using Serialization` instead" @@ -646,11 +645,6 @@ end @deprecate_stdlib crc32c CRC32c true - @deprecate_stdlib DateTime Dates true - @deprecate_stdlib DateFormat Dates true - @eval @deprecate_stdlib $(Symbol("@dateformat_str")) Dates true - @deprecate_stdlib now Dates true - @eval @deprecate_stdlib $(Symbol("@printf")) Printf true @eval @deprecate_stdlib $(Symbol("@sprintf")) Printf true diff --git a/stdlib/Dates/src/deprecated.jl b/stdlib/Dates/src/deprecated.jl index 51a96917b8261..c646bffdab5d2 100644 --- a/stdlib/Dates/src/deprecated.jl +++ b/stdlib/Dates/src/deprecated.jl @@ -1,49 +1,3 @@ # This file is a part of Julia. License is MIT: https://julialang.org/license -# 0.7 deprecations - -import Base.(:) -import Base.range - -# deprecate remaining vectorized methods from Dates -@deprecate( - DateTime(Y::AbstractArray{<:AbstractString}, f::AbstractString; locale::Locale=ENGLISH), - DateTime.(Y, f; locale=locale) ) -@deprecate( - DateTime(Y::AbstractArray{<:AbstractString}, df::DateFormat=ISODateTimeFormat), - DateTime.(Y, df) ) -@deprecate( - Date(Y::AbstractArray{<:AbstractString}, f::AbstractString; locale::Locale=ENGLISH), - Date.(Y, f; locale=locale) ) -@deprecate( - Date(Y::AbstractArray{<:AbstractString}, df::DateFormat=ISODateFormat), - Date.(Y, df) ) -@deprecate( - format(Y::AbstractArray{<:TimeType}, f::AbstractString; locale::Locale=ENGLISH), - format.(Y, f; locale=locale), - false ) -@deprecate( - format(Y::AbstractArray{T}, df::DateFormat=default_format(T)) where {T<:TimeType}, - format.(Y, df), - false ) - -@deprecate +(a::GeneralPeriod, b::StridedArray{<:GeneralPeriod}) broadcast(+, a, b) false -@deprecate +(a::StridedArray{<:GeneralPeriod}, b::GeneralPeriod) broadcast(+, a, b) false -@deprecate -(a::GeneralPeriod, b::StridedArray{<:GeneralPeriod}) broadcast(-, a, b) false -@deprecate -(a::StridedArray{<:GeneralPeriod}, b::GeneralPeriod) broadcast(-, a, b) false - -# #24258 -# Physical units define an equivalence class: there is no such thing as a step of "1" (is -# it one day or one second or one nanosecond?). So require the user to specify the step -# (in physical units). -@deprecate (:)(start::T, stop::T) where {T<:DateTime} start:Day(1):stop false -@deprecate (:)(start::T, stop::T) where {T<:Date} start:Day(1):stop false -@deprecate (:)(start::T, stop::T) where {T<:Time} start:Second(1):stop false - -@deprecate range(start::DateTime, len::Integer) range(start, step=Day(1), length=len) false -@deprecate range(start::Date, len::Integer) range(start, step=Day(1), length=len) false - -# PR #23724 -@deprecate DateTime() DateTime(1) -@deprecate Date() Date(1) -@deprecate Time() Time(0) +# 1.0 deprecations diff --git a/stdlib/Dates/test/conversions.jl b/stdlib/Dates/test/conversions.jl index 0368f9f8e7a18..bf3196731beab 100644 --- a/stdlib/Dates/test/conversions.jl +++ b/stdlib/Dates/test/conversions.jl @@ -83,7 +83,7 @@ end end end @test Dates.Year(3) == Dates.Month(36) - #@test_throws MethodError Int(Dates.Month(36)) # re-enable when deprecation removed + @test_throws MethodError Int(Dates.Month(36)) @test Dates.Year(3) < Dates.Month(37) @test_throws InexactError convert(Dates.Year, Dates.Month(37)) @test_throws InexactError Dates.Month(Dates.Year(typemax(Int64))) From 92b7ed594355602ff0c5431374d7a24a2e8f46c7 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Sun, 5 Aug 2018 15:31:33 +0200 Subject: [PATCH 02/16] Remove Base64 deprecations. --- base/sysimg.jl | 6 ------ 1 file changed, 6 deletions(-) diff --git a/base/sysimg.jl b/base/sysimg.jl index 072cbbe466cdc..832b6e18f524b 100644 --- a/base/sysimg.jl +++ b/base/sysimg.jl @@ -596,12 +596,6 @@ end @eval @deprecate_stdlib $(Symbol("@profile")) Profile true - @deprecate_stdlib base64encode Base64 true - @deprecate_stdlib base64decode Base64 true - @deprecate_stdlib Base64EncodePipe Base64 true - @deprecate_stdlib Base64DecodePipe Base64 true - @deprecate_stdlib stringmime Base64 true - @deprecate_stdlib poll_fd FileWatching true @deprecate_stdlib poll_file FileWatching true @deprecate_stdlib PollingFileWatcher FileWatching true From af8b5bc03e17f81dd56a206dd566f32b83f2ae78 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Sun, 5 Aug 2018 15:32:35 +0200 Subject: [PATCH 03/16] Remove CRC32c deprecations. --- base/sysimg.jl | 2 -- 1 file changed, 2 deletions(-) diff --git a/base/sysimg.jl b/base/sysimg.jl index 832b6e18f524b..51d4923e53477 100644 --- a/base/sysimg.jl +++ b/base/sysimg.jl @@ -637,8 +637,6 @@ end @deprecate_stdlib RemoteException Distributed true @deprecate_stdlib ProcessExitedException Distributed true - @deprecate_stdlib crc32c CRC32c true - @eval @deprecate_stdlib $(Symbol("@printf")) Printf true @eval @deprecate_stdlib $(Symbol("@sprintf")) Printf true From c1b94d19ff037aa78fd9a3f1153f1a6352018a8c Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Sun, 5 Aug 2018 15:33:12 +0200 Subject: [PATCH 04/16] Remove DelimitedFiles deprecations. --- base/sysimg.jl | 5 ----- stdlib/DelimitedFiles/src/DelimitedFiles.jl | 4 ---- 2 files changed, 9 deletions(-) diff --git a/base/sysimg.jl b/base/sysimg.jl index 51d4923e53477..435c257cb9054 100644 --- a/base/sysimg.jl +++ b/base/sysimg.jl @@ -589,11 +589,6 @@ end @eval @deprecate_binding $(Symbol("@doc_str")) getfield(root_module(Base, :Markdown), Symbol("@doc_str")) true ", use `Markdown` instead" - @deprecate_stdlib readdlm DelimitedFiles true - @deprecate_stdlib writedlm DelimitedFiles true - @deprecate_stdlib readcsv DelimitedFiles true - @deprecate_stdlib writecsv DelimitedFiles true - @eval @deprecate_stdlib $(Symbol("@profile")) Profile true @deprecate_stdlib poll_fd FileWatching true diff --git a/stdlib/DelimitedFiles/src/DelimitedFiles.jl b/stdlib/DelimitedFiles/src/DelimitedFiles.jl index 97dc374c00f64..f68dda36341e3 100644 --- a/stdlib/DelimitedFiles/src/DelimitedFiles.jl +++ b/stdlib/DelimitedFiles/src/DelimitedFiles.jl @@ -12,10 +12,6 @@ import Base: tryparse_internal, show export readdlm, writedlm -Base.@deprecate readcsv(io; opts...) readdlm(io, ','; opts...) -Base.@deprecate readcsv(io, T::Type; opts...) readdlm(io, ',', T; opts...) -Base.@deprecate writecsv(io, a; opts...) writedlm(io, a, ','; opts...) - invalid_dlm(::Type{Char}) = reinterpret(Char, 0xfffffffe) invalid_dlm(::Type{UInt8}) = 0xfe invalid_dlm(::Type{UInt16}) = 0xfffe From f9f685d74b766875c020bb0735bfd73d3015225f Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Sun, 5 Aug 2018 15:33:59 +0200 Subject: [PATCH 05/16] Remove FileWatching deprecations. --- base/sysimg.jl | 6 ------ 1 file changed, 6 deletions(-) diff --git a/base/sysimg.jl b/base/sysimg.jl index 435c257cb9054..22bc30232c2ec 100644 --- a/base/sysimg.jl +++ b/base/sysimg.jl @@ -591,12 +591,6 @@ end @eval @deprecate_stdlib $(Symbol("@profile")) Profile true - @deprecate_stdlib poll_fd FileWatching true - @deprecate_stdlib poll_file FileWatching true - @deprecate_stdlib PollingFileWatcher FileWatching true - @deprecate_stdlib watch_file FileWatching true - @deprecate_stdlib FileMonitor FileWatching true - @eval @deprecate_stdlib $(Symbol("@spawn")) Distributed true @eval @deprecate_stdlib $(Symbol("@spawnat")) Distributed true @eval @deprecate_stdlib $(Symbol("@fetch")) Distributed true From d4528ad561d665871cbd8f0ce025920c5d875aa4 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Sun, 5 Aug 2018 15:34:26 +0200 Subject: [PATCH 06/16] Remove InteractiveUtils deprecations. --- base/sysimg.jl | 23 ------------------- .../InteractiveUtils/src/InteractiveUtils.jl | 14 ----------- 2 files changed, 37 deletions(-) diff --git a/base/sysimg.jl b/base/sysimg.jl index 22bc30232c2ec..d7504ecddd6d4 100644 --- a/base/sysimg.jl +++ b/base/sysimg.jl @@ -828,29 +828,6 @@ end @deprecate_stdlib graphemes Unicode true @deprecate_stdlib is_assigned_char Unicode true - @deprecate_stdlib whos InteractiveUtils true - @deprecate_stdlib subtypes InteractiveUtils true - @deprecate_stdlib apropos InteractiveUtils true - @deprecate_stdlib edit InteractiveUtils true - @deprecate_stdlib less InteractiveUtils true - @deprecate_stdlib code_llvm InteractiveUtils true - @deprecate_stdlib code_native InteractiveUtils true - @deprecate_stdlib code_warntype InteractiveUtils true - @deprecate_stdlib methodswith InteractiveUtils true - @deprecate_stdlib varinfo InteractiveUtils true - @deprecate_stdlib versioninfo InteractiveUtils true - @deprecate_stdlib peakflops InteractiveUtils true - @deprecate_stdlib clipboard InteractiveUtils true - @eval @deprecate_stdlib $(Symbol("@which")) InteractiveUtils true - @eval @deprecate_stdlib $(Symbol("@edit")) InteractiveUtils true - @eval @deprecate_stdlib $(Symbol("@less")) InteractiveUtils true - @eval @deprecate_stdlib $(Symbol("@functionloc")) InteractiveUtils true - @eval @deprecate_stdlib $(Symbol("@code_typed")) InteractiveUtils true - @eval @deprecate_stdlib $(Symbol("@code_warntype")) InteractiveUtils true - @eval @deprecate_stdlib $(Symbol("@code_lowered")) InteractiveUtils true - @eval @deprecate_stdlib $(Symbol("@code_llvm")) InteractiveUtils true - @eval @deprecate_stdlib $(Symbol("@code_native")) InteractiveUtils true - @eval @deprecate_stdlib $(Symbol("@ip_str")) Sockets true @deprecate_stdlib IPAddr Sockets true @deprecate_stdlib IPv4 Sockets true diff --git a/stdlib/InteractiveUtils/src/InteractiveUtils.jl b/stdlib/InteractiveUtils/src/InteractiveUtils.jl index fdcc091cf1681..55084f13b7e32 100644 --- a/stdlib/InteractiveUtils/src/InteractiveUtils.jl +++ b/stdlib/InteractiveUtils/src/InteractiveUtils.jl @@ -344,18 +344,4 @@ function peakflops(n::Integer=2000; parallel::Bool=false) end end -@deprecate methodswith(typ, supertypes) methodswith(typ, supertypes = supertypes) -@deprecate whos(io::IO, m::Module, pat::Regex) show(io, varinfo(m, pat)) -@deprecate whos(io::IO, m::Module) show(io, varinfo(m)) -@deprecate whos(io::IO) show(io, varinfo()) -@deprecate whos(m::Module, pat::Regex) varinfo(m, pat) -@deprecate whos(m::Module) varinfo(m) -@deprecate whos(pat::Regex) varinfo(pat) -@deprecate whos() varinfo() -@deprecate code_native(io, f, types, syntax) code_native(io, f, types, syntax = syntax) -@deprecate code_native(f, types, syntax) code_native(f, types, syntax = syntax) -# PR #21974 -@deprecate versioninfo(verbose::Bool) versioninfo(verbose=verbose) -@deprecate versioninfo(io::IO, verbose::Bool) versioninfo(io, verbose=verbose) - end From cba666bc3adbf433cb82678cfc1ceaf78ede6392 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Sun, 5 Aug 2018 15:40:56 +0200 Subject: [PATCH 07/16] Remove Libdl deprecations. --- base/sysimg.jl | 1 - 1 file changed, 1 deletion(-) diff --git a/base/sysimg.jl b/base/sysimg.jl index d7504ecddd6d4..f10e26be2eeab 100644 --- a/base/sysimg.jl +++ b/base/sysimg.jl @@ -554,7 +554,6 @@ end @deprecate_binding Distributed root_module(Base, :Distributed) true ", run `using Distributed` instead" @deprecate_binding Random root_module(Base, :Random) true ", run `using Random` instead" @deprecate_binding Serializer root_module(Base, :Serialization) true ", run `using Serialization` instead" - @deprecate_binding Libdl root_module(Base, :Libdl) true ", run `using Libdl` instead" @deprecate_binding Markdown root_module(Base, :Markdown) true ", run `using Markdown` instead" # PR #25249 From cd060d007a83a194be5fc88f4c4710ab02d5e1b7 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Sun, 5 Aug 2018 15:42:46 +0200 Subject: [PATCH 08/16] Remove Markdown deprecations. --- base/sysimg.jl | 3 --- 1 file changed, 3 deletions(-) diff --git a/base/sysimg.jl b/base/sysimg.jl index f10e26be2eeab..141c7e6d6533d 100644 --- a/base/sysimg.jl +++ b/base/sysimg.jl @@ -554,7 +554,6 @@ end @deprecate_binding Distributed root_module(Base, :Distributed) true ", run `using Distributed` instead" @deprecate_binding Random root_module(Base, :Random) true ", run `using Random` instead" @deprecate_binding Serializer root_module(Base, :Serialization) true ", run `using Serialization` instead" - @deprecate_binding Markdown root_module(Base, :Markdown) true ", run `using Markdown` instead" # PR #25249 @deprecate_binding SparseArrays root_module(Base, :SparseArrays) true ", run `using SparseArrays` instead" @@ -586,8 +585,6 @@ end @deprecate_binding Pkg root_module(Base, :Pkg) true ", run `using Pkg` instead" @deprecate_binding LibGit2 root_module(Base, :LibGit2) true ", run `import LibGit2` instead" - @eval @deprecate_binding $(Symbol("@doc_str")) getfield(root_module(Base, :Markdown), Symbol("@doc_str")) true ", use `Markdown` instead" - @eval @deprecate_stdlib $(Symbol("@profile")) Profile true @eval @deprecate_stdlib $(Symbol("@spawn")) Distributed true From c535de9c1710b52250e1d91b4e209f33f87fe35d Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Sun, 5 Aug 2018 15:43:39 +0200 Subject: [PATCH 09/16] Remove Mmap deprecations. --- base/sysimg.jl | 1 - 1 file changed, 1 deletion(-) diff --git a/base/sysimg.jl b/base/sysimg.jl index 141c7e6d6533d..cf87e64033afd 100644 --- a/base/sysimg.jl +++ b/base/sysimg.jl @@ -549,7 +549,6 @@ end @eval Base begin @deprecate_binding Test root_module(Base, :Test) true ", run `using Test` instead" - @deprecate_binding Mmap root_module(Base, :Mmap) true ", run `using Mmap` instead" @deprecate_binding Profile root_module(Base, :Profile) true ", run `using Profile` instead" @deprecate_binding Distributed root_module(Base, :Distributed) true ", run `using Distributed` instead" @deprecate_binding Random root_module(Base, :Random) true ", run `using Random` instead" From 6c7751c79937a92596d8adfb0cccab457dad113f Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Sun, 5 Aug 2018 15:44:31 +0200 Subject: [PATCH 10/16] Remove Printf deprecations. --- base/sysimg.jl | 3 --- 1 file changed, 3 deletions(-) diff --git a/base/sysimg.jl b/base/sysimg.jl index cf87e64033afd..936d722004ed9 100644 --- a/base/sysimg.jl +++ b/base/sysimg.jl @@ -621,9 +621,6 @@ end @deprecate_stdlib RemoteException Distributed true @deprecate_stdlib ProcessExitedException Distributed true - @eval @deprecate_stdlib $(Symbol("@printf")) Printf true - @eval @deprecate_stdlib $(Symbol("@sprintf")) Printf true - # PR #24874 @deprecate_stdlib rand! Random true @deprecate_stdlib srand Random true From 17a8a18b75dedbd7849b922e7b39706a05d7d187 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Sun, 5 Aug 2018 15:45:09 +0200 Subject: [PATCH 11/16] Remove Profile deprecations. --- base/sysimg.jl | 3 --- 1 file changed, 3 deletions(-) diff --git a/base/sysimg.jl b/base/sysimg.jl index 936d722004ed9..b61e7b38d18e4 100644 --- a/base/sysimg.jl +++ b/base/sysimg.jl @@ -549,7 +549,6 @@ end @eval Base begin @deprecate_binding Test root_module(Base, :Test) true ", run `using Test` instead" - @deprecate_binding Profile root_module(Base, :Profile) true ", run `using Profile` instead" @deprecate_binding Distributed root_module(Base, :Distributed) true ", run `using Distributed` instead" @deprecate_binding Random root_module(Base, :Random) true ", run `using Random` instead" @deprecate_binding Serializer root_module(Base, :Serialization) true ", run `using Serialization` instead" @@ -584,8 +583,6 @@ end @deprecate_binding Pkg root_module(Base, :Pkg) true ", run `using Pkg` instead" @deprecate_binding LibGit2 root_module(Base, :LibGit2) true ", run `import LibGit2` instead" - @eval @deprecate_stdlib $(Symbol("@profile")) Profile true - @eval @deprecate_stdlib $(Symbol("@spawn")) Distributed true @eval @deprecate_stdlib $(Symbol("@spawnat")) Distributed true @eval @deprecate_stdlib $(Symbol("@fetch")) Distributed true From 7863b297171ec24c10ac40a9d9293496494275a8 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Sun, 5 Aug 2018 15:45:51 +0200 Subject: [PATCH 12/16] Remove REPL deprecations. --- base/sysimg.jl | 6 ------ 1 file changed, 6 deletions(-) diff --git a/base/sysimg.jl b/base/sysimg.jl index b61e7b38d18e4..38384a2bfaa46 100644 --- a/base/sysimg.jl +++ b/base/sysimg.jl @@ -574,12 +574,6 @@ end @deprecate_binding(I, root_module(Base, :LinearAlgebra).I, true, ", run `using LinearAlgebra` to load linear algebra functionality.") - # PR 25544 - @deprecate_binding REPL root_module(Base, :REPL) true ", run `using REPL` instead" - @deprecate_binding LineEdit root_module(Base, :REPL).LineEdit true ", use `REPL.LineEdit` instead" - @deprecate_binding REPLCompletions root_module(Base, :REPL).REPLCompletions true ", use `REPL.REPLCompletions` instead" - @deprecate_binding Terminals root_module(Base, :REPL).Terminals true ", use `REPL.Terminals` instead" - @deprecate_binding Pkg root_module(Base, :Pkg) true ", run `using Pkg` instead" @deprecate_binding LibGit2 root_module(Base, :LibGit2) true ", run `import LibGit2` instead" From 4b36f4285f4ab9555f63de16cc2fbd6a858dde65 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Sun, 5 Aug 2018 15:46:46 +0200 Subject: [PATCH 13/16] Remove Serialization deprecations. --- base/sysimg.jl | 5 ----- stdlib/Serialization/src/Serialization.jl | 2 -- 2 files changed, 7 deletions(-) diff --git a/base/sysimg.jl b/base/sysimg.jl index 38384a2bfaa46..5e50ad4687dff 100644 --- a/base/sysimg.jl +++ b/base/sysimg.jl @@ -634,11 +634,6 @@ end @deprecate_stdlib randjump Random true @deprecate_stdlib GLOBAL_RNG Random false - @deprecate_stdlib serialize Serialization true - @deprecate_stdlib deserialize Serialization true - @deprecate_stdlib AbstractSerializer Serialization true - @deprecate_stdlib SerializationState Serialization true - # PR #25249: SparseArrays to stdlib ## the Base.SparseArrays module itself and exported types are deprecated in base/sysimg.jl ## functions that were re-exported from Base diff --git a/stdlib/Serialization/src/Serialization.jl b/stdlib/Serialization/src/Serialization.jl index 5e307ec16ced1..0e0886fa11f23 100644 --- a/stdlib/Serialization/src/Serialization.jl +++ b/stdlib/Serialization/src/Serialization.jl @@ -27,8 +27,6 @@ end Serializer(io::IO) = Serializer{typeof(io)}(io) -@deprecate SerializationState Serializer - ## serializing values ## const n_int_literals = 33 From 2e8d940bef79db1a6820eaa0b0b26008389e879f Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Sun, 5 Aug 2018 15:48:25 +0200 Subject: [PATCH 14/16] Remove SharedArrays deprecations. --- base/sysimg.jl | 3 --- stdlib/SharedArrays/src/SharedArrays.jl | 10 ---------- 2 files changed, 13 deletions(-) diff --git a/base/sysimg.jl b/base/sysimg.jl index 5e50ad4687dff..46c5f99bc27d5 100644 --- a/base/sysimg.jl +++ b/base/sysimg.jl @@ -566,9 +566,6 @@ end @deprecate_binding(SparseVector, root_module(Base, :SparseArrays).SparseVector, true, ", run `using SparseArrays` to load sparse array functionality") - @deprecate_binding(SharedArray, root_module(Base, :SharedArrays).SharedArray, true, - ", run `using SharedArrays` to load shared array functionality") - # PR #25571 @deprecate_binding LinAlg root_module(Base, :LinearAlgebra) true ", run `using LinearAlgebra` instead" @deprecate_binding(I, root_module(Base, :LinearAlgebra).I, true, diff --git a/stdlib/SharedArrays/src/SharedArrays.jl b/stdlib/SharedArrays/src/SharedArrays.jl index 83f60b7adebda..761a48d22b900 100644 --- a/stdlib/SharedArrays/src/SharedArrays.jl +++ b/stdlib/SharedArrays/src/SharedArrays.jl @@ -686,14 +686,4 @@ shm_open(shm_seg_name, oflags, permissions) = ccall(:shm_open, Cint, end # os-test -# 0.7 deprecations - -@deprecate SharedArray(::Type{T}, dims::Dims{N}; kwargs...) where {T,N} SharedArray{T}(dims; kwargs...) -@deprecate SharedArray(::Type{T}, dims::Int...; kwargs...) where {T} SharedArray{T}(dims...; kwargs...) -@deprecate(SharedArray(filename::AbstractString, ::Type{T}, dims::NTuple{N,Int}, offset; kwargs...) where {T,N}, - SharedArray{T}(filename, dims, offset; kwargs...)) -@deprecate(SharedArray(filename::AbstractString, ::Type{T}, dims::NTuple, offset; kwargs...) where {T}, - SharedArray{T}(filename, dims, offset; kwargs...)) -@deprecate localindexes localindices - end # module From b10b6cce0f3fb755167dd96dd7c6b6b1c962aaf3 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Sun, 5 Aug 2018 15:49:11 +0200 Subject: [PATCH 15/16] Remove Sockets deprecations. --- base/sysimg.jl | 20 -------------------- stdlib/Sockets/src/Sockets.jl | 13 ------------- 2 files changed, 33 deletions(-) diff --git a/base/sysimg.jl b/base/sysimg.jl index 46c5f99bc27d5..8891b418fbec6 100644 --- a/base/sysimg.jl +++ b/base/sysimg.jl @@ -803,26 +803,6 @@ end @deprecate_stdlib graphemes Unicode true @deprecate_stdlib is_assigned_char Unicode true - @eval @deprecate_stdlib $(Symbol("@ip_str")) Sockets true - @deprecate_stdlib IPAddr Sockets true - @deprecate_stdlib IPv4 Sockets true - @deprecate_stdlib IPv6 Sockets true - @deprecate_stdlib accept Sockets true - @deprecate_stdlib connect Sockets true - @deprecate_stdlib getaddrinfo Sockets true - @deprecate_stdlib getalladdrinfo Sockets true - @deprecate_stdlib getnameinfo Sockets true - @deprecate_stdlib getipaddr Sockets true - @deprecate_stdlib getpeername Sockets true - @deprecate_stdlib getsockname Sockets true - @deprecate_stdlib listen Sockets true - @deprecate_stdlib listenany Sockets true - @deprecate_stdlib recv Sockets true - @deprecate_stdlib recvfrom Sockets true - @deprecate_stdlib send Sockets true - @deprecate_stdlib TCPSocket Sockets true - @deprecate_stdlib UDPSocket Sockets true - @deprecate_stdlib cor Statistics true @deprecate_stdlib cov Statistics true @deprecate_stdlib std Statistics true diff --git a/stdlib/Sockets/src/Sockets.jl b/stdlib/Sockets/src/Sockets.jl index e3a74ea2264aa..6b39ae0a427e2 100644 --- a/stdlib/Sockets/src/Sockets.jl +++ b/stdlib/Sockets/src/Sockets.jl @@ -652,17 +652,4 @@ function __init__() global uv_jl_connectcb = @cfunction(uv_connectcb, Cvoid, (Ptr{Cvoid}, Cint)) end -# deprecations - -@deprecate convert(dt::Type{<:Integer}, ip::IPAddr) dt(ip) - -@noinline function getaddrinfo(callback::Function, host::AbstractString) - Base.depwarn("`getaddrinfo` with a callback function is deprecated, wrap code in `@async` instead for deferred execution.", :getaddrinfo) - @async begin - r = getaddrinfo(host) - callback(r) - end - nothing -end - end From 7af13a9ac97a91771cce5751b51990ad41a2bde0 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Sun, 5 Aug 2018 15:49:49 +0200 Subject: [PATCH 16/16] Remove Statistics deprecations. --- base/sysimg.jl | 14 -------------- stdlib/Statistics/src/Statistics.jl | 20 -------------------- 2 files changed, 34 deletions(-) diff --git a/base/sysimg.jl b/base/sysimg.jl index 8891b418fbec6..fe3695c5609ff 100644 --- a/base/sysimg.jl +++ b/base/sysimg.jl @@ -802,20 +802,6 @@ end @deprecate_stdlib normalize_string Unicode true @deprecate_stdlib graphemes Unicode true @deprecate_stdlib is_assigned_char Unicode true - - @deprecate_stdlib cor Statistics true - @deprecate_stdlib cov Statistics true - @deprecate_stdlib std Statistics true - @deprecate_stdlib stdm Statistics true - @deprecate_stdlib var Statistics true - @deprecate_stdlib varm Statistics true - @deprecate_stdlib mean! Statistics true - @deprecate_stdlib mean Statistics true - @deprecate_stdlib median! Statistics true - @deprecate_stdlib median Statistics true - @deprecate_stdlib middle Statistics true - @deprecate_stdlib quantile! Statistics true - @deprecate_stdlib quantile Statistics true end end diff --git a/stdlib/Statistics/src/Statistics.jl b/stdlib/Statistics/src/Statistics.jl index 751f0b481c75a..28d2cae7837e3 100644 --- a/stdlib/Statistics/src/Statistics.jl +++ b/stdlib/Statistics/src/Statistics.jl @@ -1000,24 +1000,4 @@ function centralize_sumabs2!(R::AbstractArray{S}, A::SparseMatrixCSC{Tv,Ti}, mea return R end - -##### deprecations ##### - -# PR #21709 -@deprecate cov(x::AbstractVector, corrected::Bool) cov(x, corrected=corrected) -@deprecate cov(x::AbstractMatrix, vardim::Int, corrected::Bool) cov(x, dims=vardim, corrected=corrected) -@deprecate cov(X::AbstractVector, Y::AbstractVector, corrected::Bool) cov(X, Y, corrected=corrected) -@deprecate cov(X::AbstractVecOrMat, Y::AbstractVecOrMat, vardim::Int, corrected::Bool) cov(X, Y, dims=vardim, corrected=corrected) - -# issue #25501 -@deprecate mean(A::AbstractArray, dims) mean(A, dims=dims) -@deprecate varm(A::AbstractArray, m::AbstractArray, dims; kwargs...) varm(A, m; kwargs..., dims=dims) -@deprecate var(A::AbstractArray, dims; kwargs...) var(A; kwargs..., dims=dims) -@deprecate std(A::AbstractArray, dims; kwargs...) std(A; kwargs..., dims=dims) -@deprecate cov(X::AbstractMatrix, dim::Int; kwargs...) cov(X; kwargs..., dims=dim) -@deprecate cov(x::AbstractVecOrMat, y::AbstractVecOrMat, dim::Int; kwargs...) cov(x, y; kwargs..., dims=dim) -@deprecate cor(X::AbstractMatrix, dim::Int) cor(X, dims=dim) -@deprecate cor(x::AbstractVecOrMat, y::AbstractVecOrMat, dim::Int) cor(x, y, dims=dim) -@deprecate median(A::AbstractArray, dims; kwargs...) median(A; kwargs..., dims=dims) - end # module