changeset 1324:0713175a5743 refactor/grids

Remove dims function
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 22 Mar 2023 08:50:33 +0100
parents c5cf32fab163
children 797b4ee51edf
files src/Grids/Grids.jl src/Grids/grid.jl test/Grids/grid_test.jl
diffstat 3 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/Grids/Grids.jl	Tue Mar 07 10:12:33 2023 +0100
+++ b/src/Grids/Grids.jl	Wed Mar 22 08:50:33 2023 +0100
@@ -8,7 +8,6 @@
 export Grid
 export target_manifold_dim
 export component_type
-export dims
 
 export TensorGrid
 export ZeroDimGrid
--- a/src/Grids/grid.jl	Tue Mar 07 10:12:33 2023 +0100
+++ b/src/Grids/grid.jl	Wed Mar 22 08:50:33 2023 +0100
@@ -38,13 +38,7 @@
 
 # TODO: Make sure that all grids implement all of the above.
 
-"""
-    dims(grid::Grid)
 
-Enumerate the dimensions of the grid.
-"""
-dims(grid::Grid) = 1:ndims(grid)
-# TBD: Is this function needed? Where is it used
 """
 TODO:
 
--- a/test/Grids/grid_test.jl	Tue Mar 07 10:12:33 2023 +0100
+++ b/test/Grids/grid_test.jl	Wed Mar 22 08:50:33 2023 +0100
@@ -10,7 +10,6 @@
     @test eltype(DummyGrid{Int, 2}()) == Int
 
     @test ndims(DummyGrid{Int, 2}()) == 2
-    @test dims(DummyGrid{Int, 2}()) == 1:2
 
     @test target_manifold_dim(DummyGrid{Int, 1}()) == 1
     @test target_manifold_dim(DummyGrid{SVector{3,Float64}, 2}()) == 3