Skip to content

Commit

Permalink
Remove an unused method (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdickinson committed Jul 16, 2021
1 parent 01908a4 commit 79e0b3e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions docs/source/guide/examples/prime_counting.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,6 @@ def _report_progress(self, event):
current_step, max_steps, count_so_far
)

@observe("closing")
def _cancel_future_if_necessary(self, event):
if self.future is not None and self.future.cancellable:
self.future.cancel()

@observe("future:done")
def _respond_to_completion(self, event):
self.future = None
Expand Down

0 comments on commit 79e0b3e

Please sign in to comment.