diff --git a/dace/frontend/fortran/ast_transforms.py b/dace/frontend/fortran/ast_transforms.py index 6feab88bb4..24ac6edeca 100644 --- a/dace/frontend/fortran/ast_transforms.py +++ b/dace/frontend/fortran/ast_transforms.py @@ -750,17 +750,6 @@ def par_Decl_Range_Finder(node: ast_internal_classes.Array_Subscript_Node, :return: Ranges, rangepos, newbody """ - def add_offset(original, offset: int): - - if offset != 0: - return ast_internal_classes.BinOp_Node( - lval=original, - op="+", - rval=ast_internal_classes.Int_Literal_Node(value=str(offset)) - ) - else: - return original - currentindex = 0 indices = [] offsets = scope_vars.get_var(node.parent, node.name.name).offsets diff --git a/tests/fortran/offset_normalizer.py b/tests/fortran/offset_normalizer.py index 26f29b9954..b4138c1cac 100644 --- a/tests/fortran/offset_normalizer.py +++ b/tests/fortran/offset_normalizer.py @@ -21,12 +21,6 @@ def test_fortran_frontend_offset_normalizer_1d(): do i=50,54 d(i) = i * 2.0 end do - !do i=50,54 - ! do j=10,15 - ! d(i, j) = i * 2.0 - ! !d(i, :) = i * 2.0 - ! end do - !end do END SUBROUTINE index_test_function """ @@ -71,7 +65,6 @@ def test_fortran_frontend_offset_normalizer_2d(): do i=50,54 do j=7,9 d(i, j) = i * 2.0 + 3 * j - !d(i, :) = i * 2.0 end do end do