bluetooth: Remove pa_bluetooth_device_get_transport()

With the use of an array to represent a device's transpors, the function
becomes trivial and thus can be removed.
This commit is contained in:
Mikel Astiz 2012-12-06 10:35:20 +01:00 committed by Tanu Kaskinen
parent faaf8cd39e
commit ebdb18bca4
3 changed files with 2 additions and 11 deletions

View file

@ -1984,9 +1984,10 @@ static int setup_transport(struct userdata *u) {
pa_assert(u);
pa_assert(!u->transport);
pa_assert(u->profile != PROFILE_OFF);
/* check if profile has a transport */
t = pa_bluetooth_device_get_transport(u->device, u->profile);
t = u->device->transports[u->profile];
if (t == NULL) {
pa_log_warn("Profile has no transport");
return -1;