Skip to content

Commit d1106bc

Browse files
committed
remove unused and untested functions
1 parent 5c89e99 commit d1106bc

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/CellArray.jl

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -419,15 +419,16 @@ Return an array view of the field of CellArray `A` designated with `indices` or
419419

420420
## Helper functions
421421

422+
# NOTE: the following function could be provided in public API:
422423
# """
423424
# plain(A)
424425
#
425426
# Return a plain `N`-dimensional array view of CellArray `A` (modifying the view will modify `A`), where `N` is the sum of the dimensionalities of `A` and the cell type of `A`. The view's dimensions are `(size(A)..., cellsize(A)...)` if parameter `B` of `A` is `0`, and `(cellsize(A)..., size(A)...)` if parameter `B` of `A` is `1`. The operation is not supported if parameter `B` of `A` is neither `0` nor `1`.
426427
#
427428
# """
428-
@inline plain(A::CellArray{T,N,0,T_array}) where {T,N, T_array} = reshape(A.data, (size(A)..., cellsize(A)...))
429-
@inline plain(A::CellArray{T,N,1,T_array}) where {T,N, T_array} = reshape(A.data, (cellsize(A)..., size(A)...))
430-
@inline plain(A::CellArray{T,N,B,T_array}) where {T,N,B,T_array} = @ArgumentError("The operation is not supported if parameter `B` of `A` is neither `0` nor `1`.")
429+
# @inline plain(A::CellArray{T,N,0,T_array}) where {T,N, T_array} = reshape(A.data, (size(A)..., cellsize(A)...))
430+
# @inline plain(A::CellArray{T,N,1,T_array}) where {T,N, T_array} = reshape(A.data, (cellsize(A)..., size(A)...))
431+
# @inline plain(A::CellArray{T,N,B,T_array}) where {T,N,B,T_array} = @ArgumentError("The operation is not supported if parameter `B` of `A` is neither `0` nor `1`.")
431432

432433
# """
433434
# plain_arrayflat(A)
@@ -439,15 +440,16 @@ Return an array view of the field of CellArray `A` designated with `indices` or
439440
@inline plain_arrayflat(A::CellArray{T,N,1,T_array}) where {T,N, T_array} = reshape(A.data, (cellsize(A)..., length(A)))
440441
@inline plain_arrayflat(A::CellArray{T,N,B,T_array}) where {T,N,B,T_array} = @ArgumentError("The operation is not supported if parameter `B` of `A` is neither `0` nor `1`.")
441442

443+
# NOTE: the following function could be provided in public API:
442444
# """
443445
# plain_cellflat(A)
444446
#
445447
# Return a plain `N`-dimensional array view of CellArray `A` with flat cell indexing (modifying the view will modify `A`), where `N` is the sum of the dimensionalities of `A` and the length of the cell type of `A`. The view's dimensions are `(size(A)..., celllength(A))` if parameter `B` of `A` is `0`, and `(celllength(A), size(A)...)` if parameter `B` of `A` is `1`. The operation is not supported if parameter `B` of `A` is neither `0` nor `1`.
446448
#
447449
# """
448-
@inline plain_cellflat(A::CellArray{T,N,0,T_array}) where {T,N, T_array} = reshape(A.data, (size(A)..., celllength(A)))
449-
@inline plain_cellflat(A::CellArray{T,N,1,T_array}) where {T,N, T_array} = reshape(A.data, (celllength(A), size(A)...))
450-
@inline plain_cellflat(A::CellArray{T,N,B,T_array}) where {T,N,B,T_array} = @ArgumentError("The operation is not supported if parameter `B` of `A` is neither `0` nor `1`.")
450+
# @inline plain_cellflat(A::CellArray{T,N,0,T_array}) where {T,N, T_array} = reshape(A.data, (size(A)..., celllength(A)))
451+
# @inline plain_cellflat(A::CellArray{T,N,1,T_array}) where {T,N, T_array} = reshape(A.data, (celllength(A), size(A)...))
452+
# @inline plain_cellflat(A::CellArray{T,N,B,T_array}) where {T,N,B,T_array} = @ArgumentError("The operation is not supported if parameter `B` of `A` is neither `0` nor `1`.")
451453

452454
# """
453455
# plain_flat(A)

0 commit comments

Comments
 (0)