Skip to content

Commit 621beef

Browse files
committed
remove unused pathlib
1 parent c687db9 commit 621beef

File tree

6 files changed

+19
-96
lines changed

6 files changed

+19
-96
lines changed

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ authors:
55
given-names: Michael
66
orcid: https://orcid.org/0000-0002-1637-6526
77
title: nc4fortran
8-
version: 1.4.6
8+
version: 1.4.7
99
doi: 10.5281/zenodo.3598941
1010
date-released: 2021-11-08

codemeta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"@context": "https://doi.org/10.5063/schema/codemeta-2.0",
33
"@type": "SoftwareSourceCode",
4-
"license": "https://spdx.org/licenses/BSD-3-Clause",
4+
"license": "https://spdx.org/licenses/MIT",
55
"codeRepository": "https://github.com/geospace-code/nc4fortran",
66
"contIntegration": "https://github.com/geospace-code/nc4fortran/actions",
7-
"dateModified": "2021-01-31",
7+
"dateModified": "2021-11-21",
88
"downloadUrl": "https://github.com/geospace-code/nc4fortran/releases",
99
"issueTracker": "https://github.com/geospace-code/nc4fortran/issues",
1010
"name": "nc4fortran",
11-
"version": "1.4.6",
11+
"version": "1.4.7",
1212
"identifier": "10.5281/zenodo.3757221",
1313
"description": "Lightweight object-oriented NetCDF4 Fortran interface",
1414
"applicationCategory": "file I/O",

src/CMakeLists.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
2-
set(is_windows .false.)
3-
if(WIN32)
4-
set(is_windows .true.)
5-
endif()
6-
configure_file(pathlib.in.f90 pathlib.f90 @ONLY)
7-
81
file(READ reader_template.in.f90 reader_template)
92
configure_file(reader.in.f90 reader.f90 @ONLY)
103

@@ -22,5 +15,4 @@ interface.f90
2215
read.f90 ${CMAKE_CURRENT_BINARY_DIR}/reader.f90
2316
write.f90 ${CMAKE_CURRENT_BINARY_DIR}/writer.f90
2417
attributes.f90
25-
${CMAKE_CURRENT_BINARY_DIR}/pathlib.f90
2618
)

src/interface.f90

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,6 @@ module nc4fortran
7070

7171
!> Submodules
7272

73-
interface !< pathlib.f90
74-
module logical function std_unlink(filename)
75-
character(*), intent(in) :: filename
76-
end function std_unlink
77-
78-
module logical function is_absolute_path(path)
79-
character(*), intent(in) :: path
80-
end function is_absolute_path
81-
82-
module function get_tempdir()
83-
character(:), allocatable :: get_tempdir
84-
end function
85-
86-
end interface
87-
8873
interface !< writer.f90
8974
module subroutine nc_write_scalar_char(self, dname, value, ierr)
9075
class(netcdf_file), intent(in) :: self

src/meson.build

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,21 @@
1-
is_windows = os == 'windows' ? '.true.' : '.false.'
2-
3-
configure_file(
4-
input : 'pathlib.in.f90',
5-
output : 'pathlib.f90',
6-
configuration : {'is_windows': is_windows})
7-
81
configure_file(
9-
input : 'reader.in.f90',
10-
output : 'reader.f90',
11-
configuration : {'reader_template': fs.read('reader_template.in.f90')}
2+
input : 'reader.in.f90',
3+
output : 'reader.f90',
4+
configuration : {'reader_template': fs.read('reader_template.in.f90')}
125
)
136

147
configure_file(
15-
input : 'writer.in.f90',
16-
output : 'writer.f90',
17-
configuration : {
18-
'writer_template_r32': fs.read('writer_template_r32.in.f90'),
19-
'writer_template_r64': fs.read('writer_template_r64.in.f90'),
20-
'writer_template_i32': fs.read('writer_template_i32.in.f90'),
21-
'writer_template_i64': fs.read('writer_template_i64.in.f90')
22-
})
8+
input : 'writer.in.f90',
9+
output : 'writer.f90',
10+
configuration : {
11+
'writer_template_r32': fs.read('writer_template_r32.in.f90'),
12+
'writer_template_r64': fs.read('writer_template_r64.in.f90'),
13+
'writer_template_i32': fs.read('writer_template_i32.in.f90'),
14+
'writer_template_i64': fs.read('writer_template_i64.in.f90')
15+
}
16+
)
2317

2418
nc4_src = files('interface.f90', 'attributes.f90',
25-
'read.f90', meson.current_build_dir() / 'reader.f90',
26-
'write.f90', meson.current_build_dir() / 'writer.f90',
27-
meson.current_build_dir() / 'pathlib.f90')
19+
'read.f90', meson.current_build_dir() / 'reader.f90',
20+
'write.f90', meson.current_build_dir() / 'writer.f90'
21+
)

src/pathlib.in.f90

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)