dbus/dbus dbus-message.c,1.113,1.114

Havoc Pennington hp@pdx.freedesktop.org
Tue, 28 Oct 2003 16:29:54 -0800


Update of /cvs/dbus/dbus/dbus
In directory pdx:/tmp/cvs-serv3351/dbus

Modified Files:
	dbus-message.c 
Log Message:
2003-10-28  Havoc Pennington  <hp@redhat.com>

	* dbus/dbus-message.c (get_next_field): delete unused function



Index: dbus-message.c
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-message.c,v
retrieving revision 1.113
retrieving revision 1.114
diff -u -d -r1.113 -r1.114
--- dbus-message.c	28 Oct 2003 22:53:36 -0000	1.113
+++ dbus-message.c	29 Oct 2003 00:29:52 -0000	1.114
@@ -428,34 +428,6 @@
 }
 
 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;