get rid of old 'Connected' property parsing and make sure we don't execute two case branches

This commit is contained in:
Lennart Poettering 2009-03-30 20:55:50 +02:00
parent 91355a1ce5
commit 66b80e9ecd

View file

@ -290,17 +290,6 @@ static int parse_audio_property(pa_bluetooth_discovery *u, int *state, DBusMessa
if (pa_streq(key, "State")) if (pa_streq(key, "State"))
*state = pa_bt_audio_state_from_string(value); *state = pa_bt_audio_state_from_string(value);
/* pa_log_debug("Value %s", value); */ /* pa_log_debug("Value %s", value); */
}
case DBUS_TYPE_BOOLEAN: {
dbus_bool_t value;
dbus_message_iter_get_basic(&variant_i, &value);
/* if (pa_streq(key, "Connected")) */
/* *connected = !!value; */
/* pa_log_debug("Value %s", pa_yes_no(value)); */
break; break;
} }