Skip to content

Commit

Permalink
Merge pull request #6605 from devos50/remove_unused_methods
Browse files Browse the repository at this point in the history
Remove unused methods
  • Loading branch information
devos50 committed Dec 3, 2021
2 parents 0ac5926 + 0eadae9 commit 87465a0
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/tribler-gui/tribler_gui/debug_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,20 +832,6 @@ def _update_memory_graph(self, memory_graph, history_data):
memory_graph.add_data(mem_info["time"], [process_memory])
memory_graph.render_plot()

def on_memory_dump_data_available(self, filename, data):
if not data:
return
dest_path = os.path.join(self.export_dir, filename)
try:
with open(dest_path, "wb") as memory_dump_file:
memory_dump_file.write(data)
except OSError as exc:
ConfirmationDialog.show_error(
self.window(),
"Error when exporting file",
f"An error occurred when exporting the torrent file: {str(exc)}",
)

def closeEvent(self, close_event):
if self.rest_request:
self.rest_request.cancel_request()
Expand Down

0 comments on commit 87465a0

Please sign in to comment.