replay: Remove unused replay_disable_events

replay_disable_events has been unused since 2019's
  c8aa7895eb ("replay: don't drain/flush bdrv queue while RR is working")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
Reviewed-by: Pavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
Dr. David Alan Gilbert 2024-09-19 00:40:05 +01:00 committed by Michael Tokarev
parent 9f0b40efff
commit 40ebdc4b60
2 changed files with 0 additions and 11 deletions

View File

@ -117,8 +117,6 @@ void replay_async_events(void);
/* Asynchronous events queue */ /* Asynchronous events queue */
/*! Disables storing events in the queue */
void replay_disable_events(void);
/*! Enables storing events in the queue */ /*! Enables storing events in the queue */
void replay_enable_events(void); void replay_enable_events(void);
/*! Returns true when saving events is enabled */ /*! Returns true when saving events is enabled */

View File

@ -92,15 +92,6 @@ void replay_flush_events(void)
} }
} }
void replay_disable_events(void)
{
if (replay_mode != REPLAY_MODE_NONE) {
events_enabled = false;
/* Flush events queue before waiting of completion */
replay_flush_events();
}
}
/*! Adds specified async event to the queue */ /*! Adds specified async event to the queue */
void replay_add_event(ReplayAsyncEventKind event_kind, void replay_add_event(ReplayAsyncEventKind event_kind,
void *opaque, void *opaque,