Skip to content

Commit 441f15c

Browse files
authored
Clean up unused imports (#495)
* Clean up unused imports * reorganize Base imports * import only once from Base * don't import StaticArrays
1 parent 1980bef commit 441f15c

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/ApproxFunBase.jl

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
module ApproxFunBase
2-
using Base: AnyDict
3-
using Base, BlockArrays, BandedMatrices, BlockBandedMatrices, DomainSets,
2+
using BlockArrays, BandedMatrices, BlockBandedMatrices, DomainSets,
43
IntervalSets, SpecialFunctions, AbstractFFTs, FFTW,
54
SpecialFunctions, DSP, DualNumbers, LinearAlgebra, SparseArrays,
65
LowRankApprox, FillArrays, InfiniteArrays, InfiniteLinearAlgebra
76

8-
import StaticArrays, Calculus
7+
import Calculus
98
using StaticArrays: SVector, @SArray, SArray
109

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

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

92-
import Base: view
93-
9491
import DomainSets: dimension
9592

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

107104
export normalizedspace
108105

109-
import Base: oneto
110106

111107
# assert that the conversion succeeds. This helps with inference as well as sanity
112108
strictconvert(T::Type, x) = convert(T, x)::T

src/LinearAlgebra/clenshaw.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ end
2929

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

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

0 commit comments

Comments
 (0)