[PATCH BlueZ 2/3] audio: Remove unused function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: João Paulo Rechi Vita <jprvita@xxxxxxxxx>

Removes the never used function audio_device_is_active.
---
 profiles/audio/device.c | 19 -------------------
 profiles/audio/device.h |  3 ---
 2 files changed, 22 deletions(-)

diff --git a/profiles/audio/device.c b/profiles/audio/device.c
index b9d1dde..7a76284 100644
--- a/profiles/audio/device.c
+++ b/profiles/audio/device.c
@@ -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));
diff --git a/profiles/audio/device.h b/profiles/audio/device.h
index ad4dae5..b772594 100644
--- a/profiles/audio/device.h
+++ b/profiles/audio/device.h
@@ -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);
-- 
1.7.11.7

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux