summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-10-29 00:29:52 +0000
committerHavoc Pennington <hp@redhat.com>2003-10-29 00:29:52 +0000
commit86351a1e3a6584dadaf001e24d10bf957cdef642 (patch)
tree8d1255119400866ba7d77d57b670c50823f1706a
parentddc560a9aa276416e7b5c51dc407c90926263b82 (diff)
2003-10-28 Havoc Pennington <hp@redhat.com>
* dbus/dbus-message.c (get_next_field): delete unused function
-rw-r--r--ChangeLog4
-rw-r--r--dbus/dbus-message.c28
2 files changed, 4 insertions, 28 deletions
diff --git a/ChangeLog b/ChangeLog
index 440f8de0..fd0000d5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,10 @@
2003-10-28 Havoc Pennington <hp@redhat.com>
+ * dbus/dbus-message.c (get_next_field): delete unused function
+
+2003-10-28 Havoc Pennington <hp@redhat.com>
+
* bus/expirelist.c (do_expiration_with_current_time): detect
failure of the expire_func due to OOM
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
@@ -428,34 +428,6 @@ append_string_field (DBusMessage *message,
}
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)
{
int alignment;