Skip to content

Commit c1879a0

Browse files
committed
adjustFiles is unused, remove it
1 parent cbb284f commit c1879a0

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

cwltool/pathmapper.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,6 @@
3939
)
4040

4141

42-
def adjustFiles(
43-
rec: Any, op # type: Union[Callable[..., Any], partial[Any]]
44-
) -> None:
45-
"""Apply a mapping function to each File path in the object `rec`."""
46-
if isinstance(rec, MutableMapping):
47-
if rec.get("class") == "File":
48-
rec["path"] = op(rec["path"])
49-
for d in rec:
50-
adjustFiles(rec[d], op)
51-
if isinstance(rec, MutableSequence):
52-
for d in rec:
53-
adjustFiles(d, op)
54-
55-
5642
def adjustFileObjs(
5743
rec, op
5844
): # type: (Any, Union[Callable[..., Any], partial[Any]]) -> None

0 commit comments

Comments
 (0)