Skip to content

Commit

Permalink
audio: remove unused function audio_is_cleaning_up()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Volker Rümelin authored and kraxel committed Dec 15, 2020
1 parent ceb1165 commit ba6371b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions audio/audio.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion audio/audio.h
Expand Up @@ -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,
Expand Down

0 comments on commit ba6371b

Please sign in to comment.