2003-10-28 Havoc Pennington <hp@redhat.com>
authorHavoc Pennington <hp@redhat.com>
Wed, 29 Oct 2003 00:29:52 +0000 (00:29 +0000)
committerHavoc Pennington <hp@redhat.com>
Wed, 29 Oct 2003 00:29:52 +0000 (00:29 +0000)
* dbus/dbus-message.c (get_next_field): delete unused function

ChangeLog
dbus/dbus-message.c

index 440f8de00a1d3e6a8515b695cbe202de9683db9c..fd0000d5630fdcaa3873838a311b3b1b7de30113 100644 (file)
--- 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  <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
index 864e6b15f01808fb6730562a240e77003031f706..50f3107cbc53bb360d749c51585441d3fa985976 100644 (file)
@@ -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)
 {