@@ -8,7 +8,7 @@ module fpm_filesystem
8
8
private
9
9
public :: basename, canon_path, dirname, is_dir, join_path, number_of_rows, read_lines, list_files, env_variable, &
10
10
mkdir, exists, get_temp_filename, windows_path, unix_path, getline, delete_file, to_fortran_name
11
- public :: fileopen, fileclose, filewrite, warn
11
+ public :: fileopen, fileclose, filewrite, warnwrite
12
12
13
13
integer , parameter :: LINE_BUFFER_LEN = 1000
14
14
@@ -570,15 +570,4 @@ pure function to_fortran_name(string) result(res)
570
570
res = replace (string, SPECIAL_CHARACTERS, ' _' )
571
571
end function to_fortran_name
572
572
573
- pure function to_fortran_name (string ) result(res)
574
- ! Returns string with special characters replaced with an underscore.
575
- ! For now, only a hyphen is treated as a special character, but this can be
576
- ! expanded to other characters if needed.
577
- character (* ), intent (in ) :: string
578
- character (len (string)) :: res
579
- character , parameter :: SPECIAL_CHARACTERS(* ) = [' -' ]
580
- res = replace (string, SPECIAL_CHARACTERS, ' _' )
581
- end function to_fortran_name
582
-
583
-
584
573
end module fpm_filesystem
0 commit comments