From d9647f9c864ab1256038ad5aa733c13402ecc8c8 Mon Sep 17 00:00:00 2001 From: Martin Holters Date: Fri, 4 Oct 2019 16:00:05 +0200 Subject: [PATCH] Mark `Compat.SparseArrays` from #459 for deprecation --- README.md | 3 --- src/Compat.jl | 8 +------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/README.md b/README.md index 38dfe2efa..ddc371aaa 100644 --- a/README.md +++ b/README.md @@ -58,9 +58,6 @@ Currently, the `@compat` macro supports the following syntaxes: * `using Compat.Unicode` is provided on versions older than 0.7, where this library is not yet a part of the standard library. ([#25021]) -* `using Compat.SparseArrays` is provided on versions older than 0.7, where this library is - not yet part of the standard library ([#25249]). - * `using Compat.Random` is provided on versions older than 0.7, where this library is not yet part of the standard library ([#24874]). diff --git a/src/Compat.jl b/src/Compat.jl index e7dce2bc4..c8315c114 100644 --- a/src/Compat.jl +++ b/src/Compat.jl @@ -25,17 +25,11 @@ import Libdl const AbstractDateTime = Compat.Dates.AbstractDateTime import Printf import LinearAlgebra +import SparseArrays include("compatmacro.jl") -if VERSION < v"0.7.0-DEV.3389" - const SparseArrays = Base.SparseArrays -else - import SparseArrays -end - - # v"0.7.0-beta.234" introduced Random.gentype (formerly Base.eltype) # v"0.7.0-beta2.171" deprecated Random.srand in favor of Random.seed! (unexported) # v"0.7.0-DEV.3406" moved Base.Random to stdlib Random