Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
heartsucker committed May 28, 2019
1 parent 60e2244 commit 434954c
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions securedrop_client/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,27 +518,6 @@ def on_file_open(self, file_uuid: str) -> None:
# Non Qubes OS. Just log the event for now.
logger.info('Opening file "{}".'.format(submission_filepath))

def on_reply_download(self, source_db_object: db.Source, reply: db.Reply) -> None:
"""
Download the file associated with the Reply.
"""
if not self.api: # Then we should tell the user they need to login.
self.on_action_requiring_login()
return

sdk_object = sdclientapi.Reply(uuid=reply.uuid)
sdk_object.filename = reply.filename
sdk_object.source_uuid = source_db_object.uuid

self.set_status(_('Downloading {}'.format(sdk_object.filename)))

self.call_api(self.api.download_reply,
self.on_file_download_success,
self.on_file_download_failure,
sdk_object,
self.data_dir,
current_object=reply)

def on_submission_download(
self,
submission_type: Union[Type[db.File], Type[db.Message]],
Expand Down

0 comments on commit 434954c

Please sign in to comment.