summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTanu Kaskinen <tanuk@iki.fi>2015-10-23 13:50:35 +0300
committerTanu Kaskinen <tanuk@iki.fi>2016-06-28 16:55:42 +0300
commit0045f552aa866dfef8761ad516da098788471acd (patch)
tree06341fbe104cc15ae9ea92dd4419440b4d673bb1 /src
parent7b62601401495684b1ea0b6dce63d76e10da38e4 (diff)
card: remove pa_card_new_data.active_profile
It's not being used any more.
Diffstat (limited to 'src')
-rw-r--r--src/pulsecore/card.c8
-rw-r--r--src/pulsecore/card.h5
2 files changed, 0 insertions, 13 deletions
diff --git a/src/pulsecore/card.c b/src/pulsecore/card.c
index a0c3d93d4..bc5b75b04 100644
--- a/src/pulsecore/card.c
+++ b/src/pulsecore/card.c
@@ -96,13 +96,6 @@ void pa_card_new_data_set_name(pa_card_new_data *data, const char *name) {
data->name = pa_xstrdup(name);
}
-void pa_card_new_data_set_profile(pa_card_new_data *data, const char *profile) {
- pa_assert(data);
-
- pa_xfree(data->active_profile);
- data->active_profile = pa_xstrdup(profile);
-}
-
void pa_card_new_data_set_preferred_port(pa_card_new_data *data, pa_direction_t direction, pa_device_port *port) {
pa_assert(data);
@@ -125,7 +118,6 @@ void pa_card_new_data_done(pa_card_new_data *data) {
pa_hashmap_free(data->ports);
pa_xfree(data->name);
- pa_xfree(data->active_profile);
}
pa_card *pa_card_new(pa_core *core, pa_card_new_data *data) {
diff --git a/src/pulsecore/card.h b/src/pulsecore/card.h
index fd1fe0af6..5699475d8 100644
--- a/src/pulsecore/card.h
+++ b/src/pulsecore/card.h
@@ -101,15 +101,11 @@ typedef struct pa_card_new_data {
pa_module *module;
pa_hashmap *profiles;
- char *active_profile;
-
pa_hashmap *ports;
pa_device_port *preferred_input_port;
pa_device_port *preferred_output_port;
bool namereg_fail:1;
-
- bool save_profile:1;
} pa_card_new_data;
typedef struct {
@@ -125,7 +121,6 @@ void pa_card_profile_set_available(pa_card_profile *c, pa_available_t available)
pa_card_new_data *pa_card_new_data_init(pa_card_new_data *data);
void pa_card_new_data_set_name(pa_card_new_data *data, const char *name);
-void pa_card_new_data_set_profile(pa_card_new_data *data, const char *profile);
void pa_card_new_data_set_preferred_port(pa_card_new_data *data, pa_direction_t direction, pa_device_port *port);
void pa_card_new_data_done(pa_card_new_data *data);