From 5f2581ce2cbd7a81cd60f1d038d828116dd45bef Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 16 Jul 2015 00:27:22 -0700 Subject: [PATCH] remove bloat --- src/channel_layout.cpp | 12 ------------ src/soundio.h | 3 --- 2 files changed, 15 deletions(-) diff --git a/src/channel_layout.cpp b/src/channel_layout.cpp index d0b1979..e51e057 100644 --- a/src/channel_layout.cpp +++ b/src/channel_layout.cpp @@ -374,18 +374,6 @@ const struct SoundIoChannelLayout *soundio_channel_layout_get_builtin(int index) return &builtin_channel_layouts[index]; } -void soundio_debug_print_channel_layout(const struct SoundIoChannelLayout *layout) { - if (layout->name) { - fprintf(stderr, "%s\n", layout->name); - } else { - fprintf(stderr, "%s", soundio_get_channel_name(layout->channels[0])); - for (int i = 1; i < layout->channel_count; i += 1) { - fprintf(stderr, ", %s", soundio_get_channel_name(layout->channels[i])); - } - fprintf(stderr, "\n"); - } -} - int soundio_channel_layout_find_channel( const struct SoundIoChannelLayout *layout, enum SoundIoChannelId channel) { diff --git a/src/soundio.h b/src/soundio.h index d0a38a1..b0762eb 100644 --- a/src/soundio.h +++ b/src/soundio.h @@ -409,9 +409,6 @@ const char *soundio_get_channel_name(enum SoundIoChannelId id); int soundio_channel_layout_builtin_count(void); const struct SoundIoChannelLayout *soundio_channel_layout_get_builtin(int index); -// TODO remove this API or have it write to a `char *`? -void soundio_debug_print_channel_layout(const struct SoundIoChannelLayout *layout); - int soundio_channel_layout_find_channel( const struct SoundIoChannelLayout *layout, enum SoundIoChannelId channel);