audio: Remove unused function

Removes the never used function audio_device_is_active.
This commit is contained in:
João Paulo Rechi Vita 2013-04-12 19:34:23 -03:00 committed by Luiz Augusto von Dentz
parent 7f200ffaca
commit e0445712a3
2 changed files with 0 additions and 22 deletions

View File

@ -316,25 +316,6 @@ struct audio_device *audio_device_register(struct btd_device *device)
return dev;
}
gboolean audio_device_is_active(struct audio_device *dev,
const char *interface)
{
if (!interface) {
if ((dev->sink || dev->source) && avdtp_is_connected(dev))
return TRUE;
} else if (!strcmp(interface, AUDIO_SINK_INTERFACE) && dev->sink &&
avdtp_is_connected(dev))
return TRUE;
else if (!strcmp(interface, AUDIO_SOURCE_INTERFACE) && dev->source &&
avdtp_is_connected(dev))
return TRUE;
else if (!strcmp(interface, AUDIO_CONTROL_INTERFACE) && dev->control &&
control_is_active(dev))
return TRUE;
return FALSE;
}
void audio_device_unregister(struct audio_device *device)
{
DBG("%s", device_get_path(device->btd_dev));

View File

@ -43,6 +43,3 @@ struct audio_device {
struct audio_device *audio_device_register(struct btd_device *device);
void audio_device_unregister(struct audio_device *device);
gboolean audio_device_is_active(struct audio_device *dev,
const char *interface);