[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 4/7] audio: remove unused function audio_is_cleaning_up()
From: |
Gerd Hoffmann |
Subject: |
[PULL 4/7] audio: remove unused function audio_is_cleaning_up() |
Date: |
Tue, 15 Dec 2020 14:48:23 +0100 |
From: Volker RĂ¼melin <vr_qemu@t-online.de>
The previous commit removed the last call site of
audio_is_cleaning_up(). Remove the now unused function.
Tested-by: Howard Spoelstra <hsp.cat7@gmail.com>
Signed-off-by: Volker RĂ¼melin <vr_qemu@t-online.de>
Message-id: 20201213130528.5863-4-vr_qemu@t-online.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
audio/audio.h | 1 -
audio/audio.c | 8 --------
2 files changed, 9 deletions(-)
diff --git a/audio/audio.h b/audio/audio.h
index b883ebfb1f8e..41b3ef04eae1 100644
--- a/audio/audio.h
+++ b/audio/audio.h
@@ -160,7 +160,6 @@ static inline void *advance (void *p, int incr)
int wav_start_capture(AudioState *state, CaptureState *s, const char *path,
int freq, int bits, int nchannels);
-bool audio_is_cleaning_up(void);
void audio_cleanup(void);
void audio_sample_to_uint64(const void *samples, int pos,
diff --git a/audio/audio.c b/audio/audio.c
index 46578e4a583b..a21340927033 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -1588,13 +1588,6 @@ static void audio_vm_change_state_handler (void *opaque,
int running,
audio_reset_timer (s);
}
-static bool is_cleaning_up;
-
-bool audio_is_cleaning_up(void)
-{
- return is_cleaning_up;
-}
-
static void free_audio_state(AudioState *s)
{
HWVoiceOut *hwo, *hwon;
@@ -1647,7 +1640,6 @@ static void free_audio_state(AudioState *s)
void audio_cleanup(void)
{
- is_cleaning_up = true;
while (!QTAILQ_EMPTY(&audio_states)) {
AudioState *s = QTAILQ_FIRST(&audio_states);
QTAILQ_REMOVE(&audio_states, s, list);
--
2.27.0
- [PULL 0/7] Audio 20201215 patches, Gerd Hoffmann, 2020/12/15
- [PULL 1/7] coreaudio: rename misnamed variable fake_as, Gerd Hoffmann, 2020/12/15
- [PULL 4/7] audio: remove unused function audio_is_cleaning_up(),
Gerd Hoffmann <=
- [PULL 5/7] cs4231: Get rid of empty property array, Gerd Hoffmann, 2020/12/15
- [PULL 3/7] coreaudio: always stop audio playback on shut down, Gerd Hoffmann, 2020/12/15
- [PULL 2/7] coreaudio: don't start playback in init routine, Gerd Hoffmann, 2020/12/15
- [PULL 7/7] audio: add sanity check, Gerd Hoffmann, 2020/12/15
- [PULL 6/7] audio: Simplify audio_bug() removing old code, Gerd Hoffmann, 2020/12/15
- Re: [PULL 0/7] Audio 20201215 patches, Peter Maydell, 2020/12/15