Skip to content

Commit

Permalink
Eliminate unused code block.
Browse files Browse the repository at this point in the history
Should have been eliminated with 517f248.
  • Loading branch information
jmchilton committed Dec 13, 2018
1 parent 58dd7e6 commit 9883c6c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/galaxy/tools/parameters/output_collect.py
Expand Up @@ -528,17 +528,6 @@ def create_dataset(
def collect_primary_datasets(tool, output, tool_provided_metadata, job_working_directory, input_ext, input_dbkey="?"):
app = tool.app
sa_session = tool.sa_session
new_primary_datasets = {}
try:
galaxy_json_path = os.path.join(job_working_directory, "working", tool.provide_metadata_file)
json_file = open(galaxy_json_path, 'r')
for line in json_file:
line = json.loads(line)
if line.get('type') == 'new_primary_dataset':
new_primary_datasets[os.path.split(line.get('filename'))[-1]] = line
except Exception:
# This should not be considered an error or warning condition, this file is optional
pass
# Loop through output file names, looking for generated primary
# datasets in form specified by discover dataset patterns or in tool provided metadata.
primary_output_assigned = False
Expand Down

0 comments on commit 9883c6c

Please sign in to comment.