From 25d6928de934d5cb4f91668bd610a3ac6ae35c08 Mon Sep 17 00:00:00 2001 From: Lilith Orion Hafner Date: Sun, 17 Sep 2023 15:11:33 -0500 Subject: [PATCH] Remove usage of Base internals (permute!!) (#87) --- Project.toml | 2 +- src/PooledArrays.jl | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/Project.toml b/Project.toml index 2eea368..2f11b82 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "PooledArrays" uuid = "2dfb63ee-cc39-5dd5-95bd-886bf059d720" -version = "1.4.2" +version = "1.4.3" [deps] DataAPI = "9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a" diff --git a/src/PooledArrays.jl b/src/PooledArrays.jl index 1058f13..ce58ff8 100644 --- a/src/PooledArrays.jl +++ b/src/PooledArrays.jl @@ -307,16 +307,6 @@ function Base.invpermute!(x::PooledArray, p::AbstractVector{T}) where T<:Integer return x end -function Base.permute!!(x::PooledArray, p::AbstractVector{T}) where T<:Integer - Base.permute!!(x.refs, p) - return x -end - -function Base.invpermute!!(x::PooledArray, p::AbstractVector{T}) where T<:Integer - Base.invpermute!!(x.refs, p) - return x -end - Base.similar(pa::PooledArray{T,R}, S::Type, dims::Dims) where {T,R} = PooledArray(RefArray(zeros(R, dims)), Dict{S,R}())