From e46fc140f6acbcd27c3301985bdede85cf2d9625 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Wed, 14 Dec 2011 13:03:27 +0100 Subject: Remove unused change_callback --- src/command.c | 8 +++----- src/pa-sink-ctl.c | 12 ------------ src/pa-sink-ctl.h | 3 --- 3 files changed, 3 insertions(+), 20 deletions(-) diff --git a/src/command.c b/src/command.c index 5963fca..6ba62b9 100644 --- a/src/command.c +++ b/src/command.c @@ -137,8 +137,7 @@ volume_change(struct context *ctx, gboolean volume_increment) pa_cvolume_dec(&volume, inc); - pa_operation_unref(volume_set(ctx->context, index, &volume, - change_callback, ctx)); + pa_operation_unref(volume_set(ctx->context, index, &volume, NULL,NULL)); } static void @@ -182,8 +181,7 @@ mute(struct context *ctx, int key) return; } - pa_operation_unref(mute_set(ctx->context, index, mute, - change_callback, ctx)); + pa_operation_unref(mute_set(ctx->context, index, mute, NULL, NULL)); } static void @@ -212,7 +210,7 @@ switch_sink(struct context *ctx, int key) /* chooser_input needs to be derived from $selected_index */ o = pa_context_move_sink_input_by_index(ctx->context, input->index, sink->index, - change_callback, NULL); + NULL, NULL); pa_operation_unref(o); /* get new chooser_input, if non, select sink as fallback */ diff --git a/src/pa-sink-ctl.c b/src/pa-sink-ctl.c index f225d95..2eb15da 100644 --- a/src/pa-sink-ctl.c +++ b/src/pa-sink-ctl.c @@ -298,18 +298,6 @@ quit(struct context *ctx) g_main_loop_quit(ctx->loop); } -/* - * is called, after user input - */ -void -change_callback(pa_context* c, gint success, gpointer userdata) -{ -#if 0 - struct context *ctx = userdata; -#endif - return; -} - int main(int argc, char** argv) { diff --git a/src/pa-sink-ctl.h b/src/pa-sink-ctl.h index a59f18b..97801d4 100644 --- a/src/pa-sink-ctl.h +++ b/src/pa-sink-ctl.h @@ -59,9 +59,6 @@ struct context { void quit(struct context *ctx); -void -change_callback(pa_context* c, gint success, gpointer); - #define list_append_struct(list, data) \ do { \ (list) = g_list_append((list), \ -- cgit