Skip to contentSkip to conversation

replay: Remove unused replay_disable_events

PATCH In review [email protected] 3 participants 3 messages Sep 18, 2024 – Oct 2, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 replay: Remove unused replay_disable_events

From: "Dr. David Alan Gilbert" <[email protected]>

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

Remove it.

---
 include/sysemu/replay.h | 2 --
 replay/replay-events.c  | 9 ---------
 2 files changed, 11 deletions(-)
include/sysemu/replay.h +0 -2
index 8102fa54f0..cba74fa9bc 100644
@@ -117,8 +117,6 @@ void replay_async_events(void);
 
 /* Asynchronous events queue */
 
-/*! Disables storing events in the queue */
-void replay_disable_events(void);
 /*! Enables storing events in the queue */
 void replay_enable_events(void);
 /*! Returns true when saving events is enabled */
replay/replay-events.c +0 -9
index af0721cc1a..2e46eda6bf 100644
@@ -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 */
 void replay_add_event(ReplayAsyncEventKind event_kind,
                       void *opaque,
Signature · 1 line
2.46.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 46 lines · On 19.09.2024 02:40, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

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

Remove it.

---
  include/sysemu/replay.h | 2 --
  replay/replay-events.c  | 9 ---------
  2 files changed, 11 deletions(-)
include/sysemu/replay.h +0 -2
index 8102fa54f0..cba74fa9bc 100644
@@ -117,8 +117,6 @@ void replay_async_events(void);
 
  /* Asynchronous events queue */
 
-/*! Disables storing events in the queue */
-void replay_disable_events(void);
  /*! Enables storing events in the queue */
  void replay_enable_events(void);
  /*! Returns true when saving events is enabled */
replay/replay-events.c +0 -9
index af0721cc1a..2e46eda6bf 100644
@@ -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 */
  void replay_add_event(ReplayAsyncEventKind event_kind,
                        void *opaque,
Reviewed-by on v1 1/1
#2 lore raw
In reply to [email protected]
Quoted 36 lines · On 19/09/2024 01.40, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

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

Remove it.

---
  include/sysemu/replay.h | 2 --
  replay/replay-events.c  | 9 ---------
  2 files changed, 11 deletions(-)
include/sysemu/replay.h +0 -2
index 8102fa54f0..cba74fa9bc 100644
@@ -117,8 +117,6 @@ void replay_async_events(void);
 
  /* Asynchronous events queue */
 
-/*! Disables storing events in the queue */
-void replay_disable_events(void);
  /*! Enables storing events in the queue */
  void replay_enable_events(void);
  /*! Returns true when saving events is enabled */
replay/replay-events.c +0 -2
index af0721cc1a..2e46eda6bf 100644
@@ -92,15 +92,6 @@ void replay_flush_events(void)
      }
  }
 
-void replay_disable_events(void)
-{

replay/replay-events.c void replay_flush_events(void) · line 97

Quoted 10 lines
replay/replay-events.c +0 -7
-    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 */
  void replay_add_event(ReplayAsyncEventKind event_kind,
                        void *opaque,