[gnome-bluetooth] lib: Remove useless debug



commit 3ecf3cb5d459ed53f1fc13d1c619070528463d1b
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Oct 6 16:08:06 2011 +0100

    lib: Remove useless debug

 lib/bluetooth-agent.c |   44 --------------------------------------------
 1 files changed, 0 insertions(+), 44 deletions(-)
---
diff --git a/lib/bluetooth-agent.c b/lib/bluetooth-agent.c
index 319e3bd..0bf93e4 100644
--- a/lib/bluetooth-agent.c
+++ b/lib/bluetooth-agent.c
@@ -30,12 +30,6 @@
 
 #include "bluetooth-agent.h"
 
-#ifdef DEBUG
-#define DBG(fmt, arg...) printf("%s:%s() " fmt "\n", __FILE__, __FUNCTION__ , ## arg)
-#else
-#define DBG(fmt...)
-#endif
-
 #define BLUEZ_SERVICE	"org.bluez"
 
 #define BLUEZ_MANAGER_PATH	"/"
@@ -135,8 +129,6 @@ static gboolean bluetooth_agent_request_pin_code(BluetoothAgent *agent,
 	GDBusProxy *device;
 	gboolean result = FALSE;
 
-	DBG("agent %p", agent);
-
 	if (priv->pincode_func) {
 		device = get_device_from_adapter (agent, path);
 
@@ -157,8 +149,6 @@ static gboolean bluetooth_agent_request_passkey(BluetoothAgent *agent,
 	GDBusProxy *device;
 	gboolean result = FALSE;
 
-	DBG("agent %p", agent);
-
 	if (priv->passkey_func) {
 		device = get_device_from_adapter (agent, path);
 
@@ -180,8 +170,6 @@ static gboolean bluetooth_agent_display_passkey(BluetoothAgent *agent,
 	GDBusProxy *device;
 	gboolean result = FALSE;
 
-	DBG("agent %p", agent);
-
 	if (priv->display_func) {
 		device = get_device_from_adapter (agent, path);
 
@@ -203,8 +191,6 @@ static gboolean bluetooth_agent_request_confirmation(BluetoothAgent *agent,
 	GDBusProxy *device;
 	gboolean result = FALSE;
 
-	DBG("agent %p", agent);
-
 	if (priv->confirm_func) {
 		device = get_device_from_adapter (agent, path);
 
@@ -226,8 +212,6 @@ static gboolean bluetooth_agent_authorize(BluetoothAgent *agent,
 	GDBusProxy *device;
 	gboolean result = FALSE;
 
-	DBG("agent %p", agent);
-
 	if (priv->authorize_func) {
 		device = get_device_from_adapter (agent, path);
 
@@ -247,8 +231,6 @@ static gboolean bluetooth_agent_cancel(BluetoothAgent *agent,
 	BluetoothAgentPrivate *priv = BLUETOOTH_AGENT_GET_PRIVATE(agent);
 	gboolean result = FALSE;
 
-	DBG("agent %p", agent);
-
 	if (priv->cancel_func)
 		result = priv->cancel_func(invocation, priv->cancel_data);
 
@@ -282,8 +264,6 @@ static void bluetooth_agent_init(BluetoothAgent *agent)
 {
 	BluetoothAgentPrivate *priv = BLUETOOTH_AGENT_GET_PRIVATE(agent);
 
-	DBG("agent %p", agent);
-
 	priv->introspection_data = g_dbus_node_info_new_for_xml (introspection_xml, NULL);
 	g_assert (priv->introspection_data);
 	priv->conn = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL);
@@ -300,8 +280,6 @@ static void bluetooth_agent_finalize(GObject *agent)
 {
 	BluetoothAgentPrivate *priv = BLUETOOTH_AGENT_GET_PRIVATE(agent);
 
-	DBG("agent %p", agent);
-
 	bluetooth_agent_unregister (BLUETOOTH_AGENT (agent));
 
 	g_bus_unwatch_name (priv->watch_id);
@@ -316,8 +294,6 @@ static void bluetooth_agent_class_init(BluetoothAgentClass *klass)
 {
 	GObjectClass *object_class = (GObjectClass *) klass;
 
-	DBG("class %p", klass);
-
 	g_type_class_add_private(klass, sizeof(BluetoothAgentPrivate));
 
 	object_class->finalize = bluetooth_agent_finalize;
@@ -399,8 +375,6 @@ gboolean bluetooth_agent_setup(BluetoothAgent *agent, const char *path)
 	BluetoothAgentPrivate *priv = BLUETOOTH_AGENT_GET_PRIVATE(agent);
 	GError *error = NULL;
 
-	DBG("agent %p", agent);
-
 	if (priv->path != NULL) {
 		g_warning ("Agent already setup on '%s'", priv->path);
 		return FALSE;
@@ -432,8 +406,6 @@ gboolean bluetooth_agent_register(BluetoothAgent *agent, GDBusProxy *adapter)
 	g_return_val_if_fail (BLUETOOTH_IS_AGENT (agent), FALSE);
 	g_return_val_if_fail (G_IS_DBUS_PROXY (adapter), FALSE);
 
-	DBG("agent %p", agent);
-
 	if (priv->path != NULL) {
 		g_warning ("Agent already setup on '%s'", priv->path);
 		return FALSE;
@@ -476,15 +448,11 @@ gboolean bluetooth_agent_unregister(BluetoothAgent *agent)
 
 	g_return_val_if_fail (BLUETOOTH_IS_AGENT (agent), FALSE);
 
-	DBG("agent %p", agent);
-
 	priv = BLUETOOTH_AGENT_GET_PRIVATE(agent);
 
 	if (priv->adapter == NULL)
 		return FALSE;
 
-	DBG("unregistering agent for path '%s'", priv->path);
-
 	if (g_dbus_proxy_call_sync (priv->adapter, "UnregisterAgent",
 				    g_variant_new ("(o)", priv->path),
 				    G_DBUS_CALL_FLAGS_NONE,
@@ -524,8 +492,6 @@ void bluetooth_agent_set_pincode_func(BluetoothAgent *agent,
 
 	priv = BLUETOOTH_AGENT_GET_PRIVATE(agent);
 
-	DBG("agent %p", agent);
-
 	priv->pincode_func = func;
 	priv->pincode_data = data;
 }
@@ -539,8 +505,6 @@ void bluetooth_agent_set_passkey_func(BluetoothAgent *agent,
 
 	priv = BLUETOOTH_AGENT_GET_PRIVATE(agent);
 
-	DBG("agent %p", agent);
-
 	priv->passkey_func = func;
 	priv->passkey_data = data;
 }
@@ -554,8 +518,6 @@ void bluetooth_agent_set_display_func(BluetoothAgent *agent,
 
 	priv = BLUETOOTH_AGENT_GET_PRIVATE(agent);
 
-	DBG("agent %p", agent);
-
 	priv->display_func = func;
 	priv->display_data = data;
 }
@@ -569,8 +531,6 @@ void bluetooth_agent_set_confirm_func(BluetoothAgent *agent,
 
 	priv = BLUETOOTH_AGENT_GET_PRIVATE(agent);
 
-	DBG("agent %p", agent);
-
 	priv->confirm_func = func;
 	priv->confirm_data = data;
 }
@@ -584,8 +544,6 @@ void bluetooth_agent_set_authorize_func(BluetoothAgent *agent,
 
 	priv = BLUETOOTH_AGENT_GET_PRIVATE(agent);
 
-	DBG("agent %p", agent);
-
 	priv->authorize_func = func;
 	priv->authorize_data = data;
 }
@@ -599,8 +557,6 @@ void bluetooth_agent_set_cancel_func(BluetoothAgent *agent,
 
 	priv = BLUETOOTH_AGENT_GET_PRIVATE(agent);
 
-	DBG("agent %p", agent);
-
 	priv->cancel_func = func;
 	priv->cancel_data = data;
 }



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