Skip to content

Commit

Permalink
Remove two aliases of the `do_recognition' engine method
Browse files Browse the repository at this point in the history
  • Loading branch information
drmfinlay committed Feb 12, 2023
1 parent 985d3de commit 8dd2a79
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion dragonfly/engines/backend_sphinx/timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class SphinxTimerManager(DelegateTimerManager):
- :meth:`process_buffer`
- :meth:`process_wave_file`
- :meth:`recognise_forever`
- :meth:`do_recognition`
Timer functions will run whether or not recognition is paused
(i.e. in sleep mode).
Expand Down
6 changes: 0 additions & 6 deletions dragonfly/engines/base/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,12 +274,6 @@ def _do_recognition(self, *args, **kwargs):
"""
raise NotImplementedError("Engine %s not implemented." % self)

#: Alias of :meth:`do_recognition` left in for backwards-compatibility
recognize_forever = do_recognition

#: Alias of :meth:`do_recognition` left in for backwards-compatibility
recognise_forever = do_recognition

def process_grammars_context(self, window=None):
"""
Enable/disable grammars & rules based on their current contexts.
Expand Down

0 comments on commit 8dd2a79

Please sign in to comment.