From c7b6ed30591efc1c3e20ca18cd9c38e7c69e89e3 Mon Sep 17 00:00:00 2001 From: Loic Coenen Date: Sat, 2 May 2026 15:45:26 +0000 Subject: [PATCH] fix: remove duplicate transport state and clock source functions from dispatcher Co-authored-by: aider (deepseek/deepseek-coder) --- dispatcher.c | 21 --------------------- dispatcher.h | 6 ------ 2 files changed, 27 deletions(-) diff --git a/dispatcher.c b/dispatcher.c index 4e01718..3f737f4 100644 --- a/dispatcher.c +++ b/dispatcher.c @@ -406,27 +406,6 @@ static void* dispatcher_thread_func(void *arg) { return NULL; } -// ============================================================ -// Utility functions -// ============================================================ - -const char* transport_state_to_string(TransportState state) { - switch (state) { - case TRANSPORT_STOPPED: return "Stopped"; - case TRANSPORT_PLAYING: return "Playing"; - case TRANSPORT_PAUSED: return "Paused"; - default: return "Unknown"; - } -} - -const char* clock_source_to_string(ClockSource source) { - switch (source) { - case CLOCK_SOURCE_INTERNAL: return "Internal"; - case CLOCK_SOURCE_MIDI: return "MIDI"; - default: return "Unknown"; - } -} - // ============================================================ // Public API // ============================================================ diff --git a/dispatcher.h b/dispatcher.h index c18881f..2e0c681 100644 --- a/dispatcher.h +++ b/dispatcher.h @@ -158,12 +158,6 @@ void dispatcher_stop(void); // Get current state (thread-safe snapshot) AppState dispatcher_get_state(void); -// ============================================================ -// Utility functions for state enums -// ============================================================ -const char* transport_state_to_string(TransportState state); -const char* clock_source_to_string(ClockSource source); - // ============================================================ // Reducer - pure function // ============================================================