jeyzu pushed a commit to branch devs/jeyzu/mixer.
commit c1d086be06bdfe4075f04c9b842939a15abdcd93
Author: Jérémy Zurcher <[email protected]>
Date: Thu Feb 28 23:42:21 2013 +0100
mixer: remove useless e_mixer_xxx_set_state fct
---
src/modules/mixer/e_mod_mixer.h | 2 --
src/modules/mixer/sys_alsa.c | 15 ---------------
src/modules/mixer/sys_dummy.c | 8 --------
src/modules/mixer/sys_pulse.c | 9 ---------
4 files changed, 34 deletions(-)
diff --git a/src/modules/mixer/e_mod_mixer.h b/src/modules/mixer/e_mod_mixer.h
index c7d1b38..f733955 100644
--- a/src/modules/mixer/e_mod_mixer.h
+++ b/src/modules/mixer/e_mod_mixer.h
@@ -103,7 +103,6 @@ int e_mixer_system_set_volume(const E_Mixer_System *self,
const E_Mixer_Channel_
int e_mixer_system_get_mute(const E_Mixer_System *self, const
E_Mixer_Channel_Info *channel, int *mute);
int e_mixer_system_set_mute(const E_Mixer_System *self, const
E_Mixer_Channel_Info *channel, int mute);
int e_mixer_system_get_state(const E_Mixer_System *self, const
E_Mixer_Channel_Info *channel, E_Mixer_Channel_State *state);
-int e_mixer_system_set_state(const E_Mixer_System *self, const
E_Mixer_Channel_Info *channel, const E_Mixer_Channel_State *state);
/* PULSE */
int pulse_init(void);
@@ -130,7 +129,6 @@ int e_mixer_pulse_set_volume(const E_Mixer_System *self,
const E_Mixer_Channel_I
int e_mixer_pulse_get_mute(const E_Mixer_System *self, const
E_Mixer_Channel_Info *channel, int *mute);
int e_mixer_pulse_set_mute(const E_Mixer_System *self, const
E_Mixer_Channel_Info *channel, int mute);
int e_mixer_pulse_get_state(const E_Mixer_System *self, const
E_Mixer_Channel_Info *channel, E_Mixer_Channel_State *state);
-int e_mixer_pulse_set_state(const E_Mixer_System *self, const
E_Mixer_Channel_Info *channel, const E_Mixer_Channel_State *state);
/**
* @addtogroup Optional_Devices
diff --git a/src/modules/mixer/sys_alsa.c b/src/modules/mixer/sys_alsa.c
index 208a452..8300364 100644
--- a/src/modules/mixer/sys_alsa.c
+++ b/src/modules/mixer/sys_alsa.c
@@ -640,18 +640,3 @@ e_mixer_system_get_state(const E_Mixer_System *self,
r &= e_mixer_system_get_volume(self, channel, &state->left, &state->right);
return r;
}
-
-int
-e_mixer_system_set_state(const E_Mixer_System *self,
- const E_Mixer_Channel_Info *channel,
- const E_Mixer_Channel_State *state)
-{
- int r;
-
- if (!state)
- return 0;
-
- r = e_mixer_system_set_mute(self, channel, state->mute);
- r &= e_mixer_system_set_volume(self, channel, state->left, state->right);
- return r;
-}
diff --git a/src/modules/mixer/sys_dummy.c b/src/modules/mixer/sys_dummy.c
index 0fb6441..ed07b92 100644
--- a/src/modules/mixer/sys_dummy.c
+++ b/src/modules/mixer/sys_dummy.c
@@ -176,11 +176,3 @@ e_mixer_system_get_state(const E_Mixer_System *self
__UNUSED__,
return 1;
}
-
-int
-e_mixer_system_set_state(const E_Mixer_System *self __UNUSED__,
- const E_Mixer_Channel_Info *channel __UNUSED__,
- const E_Mixer_Channel_State *state __UNUSED__)
-{
- return 0;
-}
diff --git a/src/modules/mixer/sys_pulse.c b/src/modules/mixer/sys_pulse.c
index 9697331..0b8ce82 100644
--- a/src/modules/mixer/sys_pulse.c
+++ b/src/modules/mixer/sys_pulse.c
@@ -622,12 +622,3 @@ e_mixer_pulse_get_state(const E_Mixer_System *self,
return 1;
}
-int
-e_mixer_pulse_set_state(const E_Mixer_System *self,
- const E_Mixer_Channel_Info *channel,
- const E_Mixer_Channel_State *state)
-{
- e_mixer_pulse_set_volume(self, channel, state->left, state->right);
- e_mixer_pulse_set_mute(self, channel, state->mute);
- return 1;
-}
--
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb