Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
mcopik committed Sep 8, 2023
1 parent ec77693 commit b37c1f5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
11 changes: 0 additions & 11 deletions dace/frontend/fortran/ast_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions tests/fortran/offset_normalizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b37c1f5

Please sign in to comment.