Skip to content

Commit

Permalink
This commit removes unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
LanderOtto committed Feb 22, 2025
1 parent 2403a0b commit 8c4d608
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 35 deletions.
6 changes: 0 additions & 6 deletions streamflow/cwl/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import posixpath
import urllib.parse
from collections.abc import MutableMapping, MutableSequence
from enum import Enum
from pathlib import Path, PurePosixPath
from typing import Any, cast, get_args

Expand Down Expand Up @@ -2871,8 +2870,3 @@ def translate(self) -> Workflow:
)
# Return the final workflow object
return workflow


class LinkMergeMethod(Enum):
merge_nested = 1
merge_flattened = 2
29 changes: 0 additions & 29 deletions streamflow/cwl/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -957,35 +957,6 @@ def remap_token_value(
) -> Any:
if isinstance(value, MutableSequence):
return [remap_token_value(path_processor, old_dir, new_dir, v) for v in value]
elif isinstance(
value, (get_args(cwl_utils.parser.File), get_args(cwl_utils.parser.Directory))
):
if value.path:
value.path = remap_path(
path_processor=path_processor,
path=value.path,
old_dir=old_dir,
new_dir=new_dir,
)
if value.location:
value.location = remap_path(
path_processor=path_processor,
path=value.location,
old_dir=old_dir,
new_dir=new_dir,
)
if isinstance(value, get_args(cwl_utils.parser.File)):
if value.secondaryFiles:
value.secondaryFiles = [
remap_token_value(path_processor, old_dir, new_dir, sf)
for sf in value.secondaryFiles
]
elif value.listing:
value.listing = [
remap_token_value(path_processor, old_dir, new_dir, sf)
for sf in value.listing
]
return value
elif isinstance(value, MutableMapping):
if get_token_class(value) in ["File", "Directory"]:
if "location" in value:
Expand Down

0 comments on commit 8c4d608

Please sign in to comment.