summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-14 13:03:27 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-14 13:15:57 +0100
commite46fc140f6acbcd27c3301985bdede85cf2d9625 (patch)
treedf1c103686efc0d37881bdefe9b90b4700102bd5
parent943285c3ecf9dd7a4839bceab1ca319f989fe2bc (diff)
downloadpa-sink-ctl-e46fc140f6acbcd27c3301985bdede85cf2d9625.tar.gz
pa-sink-ctl-e46fc140f6acbcd27c3301985bdede85cf2d9625.tar.bz2
pa-sink-ctl-e46fc140f6acbcd27c3301985bdede85cf2d9625.zip
Remove unused change_callback
-rw-r--r--src/command.c8
-rw-r--r--src/pa-sink-ctl.c12
-rw-r--r--src/pa-sink-ctl.h3
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), \