diff --git a/lib/galaxy/managers/datasets.py b/lib/galaxy/managers/datasets.py index 3a23a25e19a1..0b3bc45340ca 100644 --- a/lib/galaxy/managers/datasets.py +++ b/lib/galaxy/managers/datasets.py @@ -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")