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

@ -974,15 +974,6 @@ pa_bluetooth_device* pa_bluetooth_discovery_get_by_path(pa_bluetooth_discovery *
return NULL;
}
pa_bluetooth_transport* pa_bluetooth_device_get_transport(pa_bluetooth_device *d, enum profile profile) {
pa_assert(d);
if (profile == PROFILE_OFF)
return NULL;
return d->transports[profile];
}
bool pa_bluetooth_device_any_audio_connected(const pa_bluetooth_device *d) {
pa_assert(d);