Skip to contentSkip to conversation

qemu-timer: Remove unused qemu_clock_get_main_loop_timerlist

PATCH Superseded [email protected] 1 participant 2 messages Sep 18, 2024 – Sep 19, 2024

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu-timer: Remove unused qemu_clock_get_main_loop_timerlist

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

qemu_clock_get_main_loop_timerlist has been unused since it was originally added in
ff83c66ecc ("aio / timers: Split QEMUClock into QEMUClock and QEMUTimerList")

Remove it.

---
 include/qemu/timer.h | 10 ----------
 util/qemu-timer.c    |  5 -----
 2 files changed, 15 deletions(-)
include/qemu/timer.h +0 -10
index fa56ec9481..ccd8578ae3 100644
@@ -190,16 +190,6 @@ bool qemu_clock_use_for_deadline(QEMUClockType type);
  */
 int64_t qemu_clock_deadline_ns_all(QEMUClockType type, int attr_mask);
 
-/**
- * qemu_clock_get_main_loop_timerlist:
- * @type: the clock type
- *
- * Return the default timer list associated with a clock.
- *
- * Returns: the default timer list
- */
-QEMUTimerList *qemu_clock_get_main_loop_timerlist(QEMUClockType type);
-
 /**
  * qemu_clock_nofify:
  * @type: the clock type
util/qemu-timer.c +0 -5
index 213114be68..e5b5452e4e 100644
@@ -291,11 +291,6 @@ QEMUClockType timerlist_get_clock(QEMUTimerList *timer_list)
     return timer_list->clock->type;
 }
 
-QEMUTimerList *qemu_clock_get_main_loop_timerlist(QEMUClockType type)
-{
-    return main_loop_tlg.tl[type];
-}
-
 void timerlist_notify(QEMUTimerList *timer_list)
 {
     if (timer_list->notify_cb) {
Signature · 1 line
2.46.0
#1 lore raw
Quoted 9 lines · * [email protected] ([email protected]) wrote:

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

qemu_clock_get_main_loop_timerlist has been unused since it was originally added in
ff83c66ecc ("aio / timers: Split QEMUClock into QEMUClock and QEMUTimerList")

Remove it.

V2 sent, see:

[PATCH v2] qemu-timer: Remove unused timer functions <[email protected]>

I found another one.

Dave

Quoted 45 lines
---
 include/qemu/timer.h | 10 ----------
 util/qemu-timer.c    |  5 -----
 2 files changed, 15 deletions(-)
include/qemu/timer.h +0 -10
index fa56ec9481..ccd8578ae3 100644
@@ -190,16 +190,6 @@ bool qemu_clock_use_for_deadline(QEMUClockType type);
  */
 int64_t qemu_clock_deadline_ns_all(QEMUClockType type, int attr_mask);
 
-/**
- * qemu_clock_get_main_loop_timerlist:
- * @type: the clock type
- *
- * Return the default timer list associated with a clock.
- *
- * Returns: the default timer list
- */
-QEMUTimerList *qemu_clock_get_main_loop_timerlist(QEMUClockType type);
-
 /**
  * qemu_clock_nofify:
  * @type: the clock type
util/qemu-timer.c +0 -5
index 213114be68..e5b5452e4e 100644
@@ -291,11 +291,6 @@ QEMUClockType timerlist_get_clock(QEMUTimerList *timer_list)
     return timer_list->clock->type;
 }
 
-QEMUTimerList *qemu_clock_get_main_loop_timerlist(QEMUClockType type)
-{
-    return main_loop_tlg.tl[type];
-}
-
 void timerlist_notify(QEMUTimerList *timer_list)
 {
     if (timer_list->notify_cb) {
Signature · 1 line
2.46.0
Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/