Skip to content

Commit

Permalink
Remove unused function.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Aug 1, 2024
1 parent 297aeae commit f4d8bb8
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions lib/galaxy/managers/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,23 +64,6 @@ def __init__(self, app: MinimalManagerApp):
self.quota_agent = app.quota_agent
self.security_agent = app.model.security_agent

def create(self, manage_roles=None, access_roles=None, flush=True, **kwargs):
"""
Create and return a new Dataset object.
"""
# default to NEW state on new datasets
kwargs.update(dict(state=(kwargs.get("state", model.Dataset.states.NEW))))
dataset = model.Dataset(**kwargs)
self.session().add(dataset)

self.permissions.set(dataset, manage_roles, access_roles, flush=False)

if flush:
session = self.session()
with transaction(session):
session.commit()
return dataset

def copy(self, dataset, **kwargs):
raise exceptions.NotImplemented("Datasets cannot be copied")

Expand Down

0 comments on commit f4d8bb8

Please sign in to comment.