diff options
author | Tanu Kaskinen <tanu.kaskinen@linux.intel.com> | 2014-04-15 13:56:11 +0300 |
---|---|---|
committer | Tanu Kaskinen <tanu.kaskinen@linux.intel.com> | 2014-05-02 16:00:56 +0300 |
commit | ef4ae785aa1d4d67b5df1c9414f6c1a144bc3460 (patch) | |
tree | 949bd2d1dc9e283b312c81270f570ff3ae0cf40c /src/pulsecore/sink-input.c | |
parent | e4a7625ba884c5cce20468d75937857343751c35 (diff) |
sink-input, source-output: Remove redundant get_mute() functions
The functions just return the muted value. Callers can as well read
the struct field directly, it's simpler that way.
Diffstat (limited to 'src/pulsecore/sink-input.c')
-rw-r--r-- | src/pulsecore/sink-input.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c index e41afc9ba..cfec051f0 100644 --- a/src/pulsecore/sink-input.c +++ b/src/pulsecore/sink-input.c @@ -1426,15 +1426,6 @@ void pa_sink_input_set_mute(pa_sink_input *i, bool mute, bool save) { pa_subscription_post(i->core, PA_SUBSCRIPTION_EVENT_SINK_INPUT|PA_SUBSCRIPTION_EVENT_CHANGE, i->index); } -/* Called from main context */ -bool pa_sink_input_get_mute(pa_sink_input *i) { - pa_sink_input_assert_ref(i); - pa_assert_ctl_context(); - pa_assert(PA_SINK_INPUT_IS_LINKED(i->state)); - - return i->muted; -} - /* Called from main thread */ void pa_sink_input_update_proplist(pa_sink_input *i, pa_update_mode_t mode, pa_proplist *p) { pa_sink_input_assert_ref(i); |