Skip to content

Commit

Permalink
remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
teo-milea committed Oct 7, 2024
1 parent 0917111 commit 5a65983
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions packages/syft/src/syft/service/output/output_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,23 +315,6 @@ def get_by_output_policy_id(
def get(self, context: AuthedServiceContext, id: UID) -> ExecutionOutput:
return self.stash.get_by_uid(context.credentials, id).unwrap()

# @service_method(
# path="output.set_permission",
# name="set_permission",
# roles=GUEST_ROLE_LEVEL,
# )
# def set_permission(
# self, context: AuthedServiceContext, uid, credentials
# ) -> ExecutionOutput:
# exec_output = self.get(context, uid)
# permissions = [
# ActionObjectREAD(uid=_id.id, credentials=credentials)
# for _id in exec_output.output_id_list
# ]
# return context.server.services.action.stash.add_permissions(
# permissions
# ).unwrap()

@service_method(path="output.get_all", name="get_all", roles=GUEST_ROLE_LEVEL)
def get_all(self, context: AuthedServiceContext) -> list[ExecutionOutput]:
return self.stash.get_all(context.credentials).unwrap()
Expand Down

0 comments on commit 5a65983

Please sign in to comment.