Skip to content

Clean up unused imports #495

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

Merged
merged 4 commits into from
Jul 20, 2023
Merged
Show file tree
Hide file tree
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
10 changes: 3 additions & 7 deletions src/ApproxFunBase.jl
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
module ApproxFunBase
using Base: AnyDict
using Base, BlockArrays, BandedMatrices, BlockBandedMatrices, DomainSets,
using BlockArrays, BandedMatrices, BlockBandedMatrices, DomainSets,
IntervalSets, SpecialFunctions, AbstractFFTs, FFTW,
SpecialFunctions, DSP, DualNumbers, LinearAlgebra, SparseArrays,
LowRankApprox, FillArrays, InfiniteArrays, InfiniteLinearAlgebra

import StaticArrays, Calculus
import Calculus
using StaticArrays: SVector, @SArray, SArray

import DomainSets: Domain, indomain, UnionDomain, ProductDomain, Point, ∂,
Expand All @@ -30,7 +29,7 @@ import Base: values, convert, getindex, setindex!, *, +, -, ==, <, <=, >, |, !,
eachindex, firstindex, lastindex, isreal,
OneTo, Array, Vector, Matrix, view, ones, @propagate_inbounds,
print_array, split, iszero, permutedims, rad2deg, deg2rad, checkbounds,
real, float
real, float, view, oneto

import Base.Broadcast: BroadcastStyle, Broadcasted, AbstractArrayStyle,
broadcastable, DefaultArrayStyle, broadcasted
Expand Down Expand Up @@ -89,8 +88,6 @@ import InfiniteArrays: PosInfinity, InfRanges, AbstractInfUnitRange,
# convenience for 1-d block ranges
const BlockRange1 = BlockRange{1,Tuple{UnitRange{Int}}}

import Base: view

import DomainSets: dimension

import IntervalSets: (..), endpoints
Expand All @@ -106,7 +103,6 @@ export endpoints, cache

export normalizedspace

import Base: oneto

# assert that the conversion succeeds. This helps with inference as well as sanity
strictconvert(T::Type, x) = convert(T, x)::T
Expand Down
2 changes: 1 addition & 1 deletion src/LinearAlgebra/clenshaw.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ end

clenshaw(x,c) = clenshaw_halved(2*x, c)

@generated function clenshaw_halved(x, c::StaticArrays.SVector{N,R}) where {N, R}
@generated function clenshaw_halved(x, c::SVector{N,R}) where {N, R}
a, b = :(zero(R)), :(zero(R))
as = []
for k = N:-1:2
Expand Down