Skip to content

Commit

Permalink
fix warning of unused type parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
iintSjds committed Jul 17, 2023
1 parent 67f3cd3 commit 726e64a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/grid/interpolate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ function interp1D(data::AbstractMatrix, xgrid::T, x; axis=1, method=InterpStyle(
end
end

function interp1D(data::AbstractVector, xgrid::T, x; axis=1, method=InterpStyle(T)) where {DT,T}
function interp1D(data::AbstractVector, xgrid::T, x; axis=1, method=InterpStyle(T)) where {T}
return interp1D(method, data, xgrid, x)
end

Expand Down
2 changes: 1 addition & 1 deletion src/grid/simple.jl
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ Base.length(grid::AbstractGrid) = grid.size
Base.size(grid::AbstractGrid) = (grid.size,)
Base.size(grid::AbstractGrid, I::Int) = grid.size

Base.view(grid::AbstractGrid, inds...) where {N} = Base.view(grid.grid, inds...)
Base.view(grid::AbstractGrid, inds...) = Base.view(grid.grid, inds...)
# set is not allowed for grids
Base.getindex(grid::AbstractGrid, i) = grid.grid[i]
Base.firstindex(grid::AbstractGrid) = 1
Expand Down

0 comments on commit 726e64a

Please sign in to comment.