From 5a3326032e93a1c8dbb5bfaf86691c0130e74ddc Mon Sep 17 00:00:00 2001 From: Mark Kittisopikul Date: Mon, 29 Jan 2024 03:18:11 -0500 Subject: [PATCH] Drop deprecated getindex for non-integers --- Project.toml | 2 +- src/deprecations.jl | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Project.toml b/Project.toml index e1765054..00579f75 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "Interpolations" uuid = "a98d9a8b-a2ab-59e6-89dd-64a1c18fca59" -version = "0.15.1" +version = "0.16.0" [deps] Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e" diff --git a/src/deprecations.jl b/src/deprecations.jl index b94a89b6..101790f9 100644 --- a/src/deprecations.jl +++ b/src/deprecations.jl @@ -1,6 +1,4 @@ -# deprecate getindex for non-integer numeric indices -@deprecate getindex(itp::AbstractInterpolation{T,N}, i::Vararg{Number,N}) where {T,N} itp(i...) -@deprecate getindex(itp::AbstractInterpolation{T,N}, i::Vararg{ExpandedIndexTypes,N}) where {T,N} itp(i...) +# Removed with 0.16, indexing via non-integers for T in (:Throw, :Flat, :Line, :Free, :Periodic, :Reflect, :InPlace, :InPlaceQ) @eval begin