From: Havoc Pennington Date: Wed, 29 Oct 2003 00:29:52 +0000 (+0000) Subject: 2003-10-28 Havoc Pennington X-Git-Tag: dbus-0.20~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=86351a1e3a6584dadaf001e24d10bf957cdef642;p=platform%2Fupstream%2Fdbus.git 2003-10-28 Havoc Pennington * dbus/dbus-message.c (get_next_field): delete unused function --- diff --git a/ChangeLog b/ChangeLog index 440f8de0..fd0000d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,10 @@ * python/dbus_bindings.pyx.in: add get_dict to handle dictionaries return types. Fixup TYPE_* to reflect changes in dbus/dbus-protocol.h +2003-10-28 Havoc Pennington + + * dbus/dbus-message.c (get_next_field): delete unused function + 2003-10-28 Havoc Pennington * bus/expirelist.c (do_expiration_with_current_time): detect diff --git a/dbus/dbus-message.c b/dbus/dbus-message.c index 864e6b15..50f3107c 100644 --- a/dbus/dbus-message.c +++ b/dbus/dbus-message.c @@ -427,34 +427,6 @@ append_string_field (DBusMessage *message, return FALSE; } -static int -get_next_field (DBusMessage *message, - int field) -{ - int offset; - int closest; - int i; - int retval; - - offset = message->header_fields[field].name_offset; - retval = DBUS_HEADER_FIELD_INVALID; - - i = 0; - closest = _DBUS_INT_MAX; - while (i < DBUS_HEADER_FIELD_LAST) - { - if (message->header_fields[i].name_offset > offset && - message->header_fields[i].name_offset < closest) - { - closest = message->header_fields[i].name_offset; - retval = i; - } - ++i; - } - - return retval; -} - static int get_type_alignment (int type) {