From ea2254fddb7f6835a0ce88991338cbc80ad1f3e1 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Fri, 4 Jul 2014 16:44:00 +0300 Subject: [PATCH] cups: Remove dead code --- profiles/cups/main.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/profiles/cups/main.c b/profiles/cups/main.c index 2079812fa..11ce72fab 100644 --- a/profiles/cups/main.c +++ b/profiles/cups/main.c @@ -332,13 +332,11 @@ static gboolean device_is_printer(const char *adapter, const char *device_path, static void remote_device_found(const char *adapter, const char *bdaddr, const char *name) { - DBusMessage *message, *reply, *adapter_reply; + DBusMessage *message, *reply; DBusMessageIter iter; char *object_path = NULL; char *id; - adapter_reply = NULL; - assert(adapter != NULL); message = dbus_message_new_method_call("org.bluez", adapter, @@ -347,9 +345,6 @@ static void remote_device_found(const char *adapter, const char *bdaddr, dbus_message_iter_init_append(message, &iter); dbus_message_iter_append_basic(&iter, DBUS_TYPE_STRING, &bdaddr); - if (adapter_reply != NULL) - dbus_message_unref(adapter_reply); - reply = dbus_connection_send_with_reply_and_block(conn, message, -1, NULL); -- 2.47.3