Skip to content

Commit 7e0b592

Browse files
committed
Remove redundant interface
1 parent e66e683 commit 7e0b592

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

src/stdlib_io_np.fypp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -145,21 +145,6 @@ module stdlib_io_np
145145
end
146146
end interface
147147

148-
interface allocate_array_from_shape
149-
#:for k1, t1 in KINDS_TYPES
150-
#:for rank in RANKS
151-
module subroutine allocate_array_from_shape_${t1[0]}$${k1}$_${rank}$ (array, vshape, stat)
152-
!> Instance of the array to be allocated.
153-
${t1}$, allocatable, intent(out) :: array${ranksuffix(rank)}$
154-
!> Dimensions to allocate for.
155-
integer, intent(in) :: vshape(:)
156-
!> Status of allocate.
157-
integer, intent(out) :: stat
158-
end
159-
#:endfor
160-
#:endfor
161-
end interface
162-
163148
interface add_array
164149
#:for k1, t1 in KINDS_TYPES
165150
#:for rank in RANKS

src/stdlib_io_np_load.fypp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ contains
5858
exit catch
5959
end if
6060

61-
call allocate_array_from_shape(array, vshape, stat)
61+
call allocate_array_from_shape_${t1[0]}$${k1}$_${rank}$(array, vshape, stat)
6262
if (stat /= 0) then
6363
msg = "Failed to allocate array of type '"//vtype//"' "//&
6464
& "with total size of "//to_string(product(vshape))
@@ -86,7 +86,7 @@ contains
8686

8787
#:for k1, t1 in KINDS_TYPES
8888
#:for rank in RANKS
89-
module subroutine allocate_array_from_shape_${t1[0]}$${k1}$_${rank}$(array, vshape, stat)
89+
subroutine allocate_array_from_shape_${t1[0]}$${k1}$_${rank}$(array, vshape, stat)
9090
${t1}$, allocatable, intent(out) :: array${ranksuffix(rank)}$
9191
integer, intent(in) :: vshape(:)
9292
integer, intent(out) :: stat
@@ -180,7 +180,7 @@ contains
180180
block
181181
${t1}$, allocatable :: array${ranksuffix(rank)}$
182182

183-
call allocate_array_from_shape(array, vshape, stat)
183+
call allocate_array_from_shape_${t1[0]}$${k1}$_${rank}$(array, vshape, stat)
184184
if (stat /= 0) then
185185
msg = "Failed to allocate array of type '"//this_type//"'.";
186186
close(io, status='delete'); return

0 commit comments

Comments
 (0)