Skip to content

Commit c345f06

Browse files
committed
Remove un-used add_character_to_string subroutine
- Dead code--unreachable - Never called anywhere else - Not documented
1 parent 38f7e68 commit c345f06

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

src/json_module.F90

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7599,32 +7599,6 @@ subroutine parse_string(unit, str, string)
75997599
end subroutine parse_string
76007600
!*****************************************************************************************
76017601

7602-
!*****************************************************************************************
7603-
!.... gfortran bug ..... some problem.....
7604-
!*****************************************************************************************
7605-
pure subroutine add_character_to_string(str,ip,c)
7606-
7607-
implicit none
7608-
7609-
character(kind=CK,len=:),allocatable,intent(inout) :: str
7610-
integer(IK),intent(inout) :: ip
7611-
character(kind=CK,len=1),intent(in) :: c
7612-
7613-
if (allocated(str)) then
7614-
!resize string if necessary:
7615-
if (ip>len(str)) str = str // repeat(space, chunk_size)
7616-
else
7617-
str = repeat(space, chunk_size)
7618-
ip = 1
7619-
end if
7620-
7621-
!append to string:
7622-
str(ip:ip) = c
7623-
ip = ip + 1
7624-
7625-
end subroutine add_character_to_string
7626-
!*****************************************************************************************
7627-
76287602
!*****************************************************************************************
76297603
!****if* json_module/parse_for_chars
76307604
!

0 commit comments

Comments
 (0)