From 21d36177ccf752fe89a66efa2ccd264f199405f4 Mon Sep 17 00:00:00 2001 From: laszloh Date: Mon, 13 Nov 2023 15:18:52 +0100 Subject: [PATCH] Remove unused queues --- src/AudioPlayer.cpp | 1 + src/Queues.cpp | 7 ------- src/Queues.h | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/AudioPlayer.cpp b/src/AudioPlayer.cpp index 2db92cb70..0609b365d 100644 --- a/src/AudioPlayer.cpp +++ b/src/AudioPlayer.cpp @@ -24,6 +24,7 @@ #include #include +#include #define AUDIOPLAYER_VOLUME_MAX 21u #define AUDIOPLAYER_VOLUME_MIN 0u diff --git a/src/Queues.cpp b/src/Queues.cpp index 85991199e..e0eb0f49b 100644 --- a/src/Queues.cpp +++ b/src/Queues.cpp @@ -5,7 +5,6 @@ #include "Rfid.h" QueueHandle_t gVolumeQueue; -QueueHandle_t gTrackQueue; QueueHandle_t gTrackControlQueue; QueueHandle_t gRfidCardQueue; @@ -25,10 +24,4 @@ void Queues_Init(void) { if (gTrackControlQueue == NULL) { Log_Println(unableToCreateMgmtQ, LOGLEVEL_ERROR); } - - char **playlistArray; - gTrackQueue = xQueueCreate(1, sizeof(playlistArray)); - if (gTrackQueue == NULL) { - Log_Println(unableToCreatePlayQ, LOGLEVEL_ERROR); - } } diff --git a/src/Queues.h b/src/Queues.h index 83aff5c30..b15592a8d 100644 --- a/src/Queues.h +++ b/src/Queues.h @@ -4,4 +4,4 @@ extern QueueHandle_t gVolumeQueue; extern QueueHandle_t gTrackControlQueue; extern QueueHandle_t gRfidCardQueue; -void Queues_Init(void); \ No newline at end of file +void Queues_Init(void);