Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused imported names #392

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/BlockArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

export blockappend!, blockpush!, blockpushfirst!, blockpop!, blockpopfirst!

import Base: @propagate_inbounds, Array, to_indices, to_index,
import Base: @propagate_inbounds, Array, AbstractArray, to_indices, to_index,
unsafe_indices, first, last, size, length, unsafe_length,
unsafe_convert,
getindex, setindex!, ndims, show, view,
Expand All @@ -27,13 +27,10 @@
tail, reindex,
RangeIndex, Int, Integer, Number, Tuple,
+, -, *, /, \, min, max, isless, in, copy, copyto!, axes, @deprecate,
BroadcastStyle, checkbounds, throw_boundserror,
BroadcastStyle, checkbounds,
oneunit, ones, zeros, intersect, Slice, resize!
using Base: ReshapedArray, dataids, oneto
import Base: AbstractArray

_maybetail(::Tuple{}) = ()
_maybetail(t::Tuple) = tail(t)
using Base: ReshapedArray, dataids, oneto

import Base: (:), IteratorSize, iterate, axes1, strides, isempty
import Base.Broadcast: broadcasted, DefaultArrayStyle, AbstractArrayStyle, Broadcasted, broadcastable
Expand All @@ -45,7 +42,7 @@
import FillArrays: axes_print_matrix_row

import LinearAlgebra: AbstractTriangular, AdjOrTrans, HermOrSym, RealHermSymComplexHerm, StructuredMatrixStyle,
cholcopy, cholesky, cholesky!, lmul!, rmul!
lmul!, rmul!


if VERSION ≥ v"1.11.0-DEV.21"
Expand All @@ -57,6 +54,9 @@
LinearAlgebra.UnitLowerTriangular{T,S}}
end

_maybetail(::Tuple{}) = ()
_maybetail(t::Tuple) = tail(t)

Check warning on line 58 in src/BlockArrays.jl

View check run for this annotation

Codecov / codecov/patch

src/BlockArrays.jl#L57-L58

Added lines #L57 - L58 were not covered by tests

include("blockindices.jl")
include("blockaxis.jl")
include("abstractblockarray.jl")
Expand Down
Loading