From d4efccf20b7b8f7694f6dba2878be87eec496242 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 22 Jun 2011 19:17:35 +0100 Subject: [PATCH] _dbus_connection_queue_received_message: remove, unused --- dbus/dbus-connection-internal.h | 2 -- dbus/dbus-connection.c | 26 -------------------------- 2 files changed, 0 insertions(+), 28 deletions(-) diff --git a/dbus/dbus-connection-internal.h b/dbus/dbus-connection-internal.h index 4cc2761..ac4158e 100644 --- a/dbus/dbus-connection-internal.h +++ b/dbus/dbus-connection-internal.h @@ -48,8 +48,6 @@ void _dbus_connection_lock (DBusConnection void _dbus_connection_unlock (DBusConnection *connection); DBusConnection * _dbus_connection_ref_unlocked (DBusConnection *connection); void _dbus_connection_unref_unlocked (DBusConnection *connection); -dbus_bool_t _dbus_connection_queue_received_message (DBusConnection *connection, - DBusMessage *message); void _dbus_connection_queue_received_message_link (DBusConnection *connection, DBusList *link); dbus_bool_t _dbus_connection_has_messages_to_send_unlocked (DBusConnection *connection); diff --git a/dbus/dbus-connection.c b/dbus/dbus-connection.c index cb1da8c..5f2f472 100644 --- a/dbus/dbus-connection.c +++ b/dbus/dbus-connection.c @@ -426,32 +426,6 @@ _dbus_connection_wakeup_mainloop (DBusConnection *connection) } #ifdef DBUS_BUILD_TESTS -/* For now this function isn't used */ -/** - * Adds a message to the incoming message queue, returning #FALSE - * if there's insufficient memory to queue the message. - * Does not take over refcount of the message. - * - * @param connection the connection. - * @param message the message to queue. - * @returns #TRUE on success. - */ -dbus_bool_t -_dbus_connection_queue_received_message (DBusConnection *connection, - DBusMessage *message) -{ - DBusList *link; - - link = _dbus_list_alloc_link (message); - if (link == NULL) - return FALSE; - - dbus_message_ref (message); - _dbus_connection_queue_received_message_link (connection, link); - - return TRUE; -} - /** * Gets the locks so we can examine them * -- 1.7.5.4