summaryrefslogtreecommitdiffstats
path: root/gdbus/object.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-06-06 10:42:15 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-06-06 10:42:15 +0000
commit38b422bbfe271a79b098acb99551812b0b9bde43 (patch)
tree2accdbad5f546aaa24e9618eda5d757be6a58901 /gdbus/object.c
parent648ac7812adfc4401ae654055ffb5676393b2fa2 (diff)
Remove obsolete D-Bus sending helpers
Diffstat (limited to 'gdbus/object.c')
-rw-r--r--gdbus/object.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/gdbus/object.c b/gdbus/object.c
index 0e979f97..5d956f29 100644
--- a/gdbus/object.c
+++ b/gdbus/object.c
@@ -58,17 +58,6 @@ struct interface_data {
DBusPropertyVTable *old_properties;
};
-DBusHandlerResult dbus_connection_send_and_unref(DBusConnection *connection,
- DBusMessage *message)
-{
- if (message) {
- dbus_connection_send(connection, message, NULL);
- dbus_message_unref(message);
- }
-
- return DBUS_HANDLER_RESULT_HANDLED;
-}
-
static void print_arguments(GString *gstr, const char *sig, const char *direction)
{
int i;
@@ -261,7 +250,11 @@ static DBusHandlerResult introspect(DBusConnection *connection,
dbus_message_append_args(reply, DBUS_TYPE_STRING, &data->introspect,
DBUS_TYPE_INVALID);
- return dbus_connection_send_and_unref(connection, reply);
+ dbus_connection_send(connection, reply, NULL);
+
+ dbus_message_unref(reply);
+
+ return DBUS_HANDLER_RESULT_HANDLED;
}
static void generic_unregister(DBusConnection *connection, void *user_data)