From: Simon McVittie Date: Thu, 14 Jul 2011 17:48:03 +0000 (+0100) Subject: message-factory: move static functions only called by #if 0 code into another #if 0 X-Git-Tag: dbus-1.5.8~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3a063c3d2cc1bbc17eccb63ca1c461d83f072542;p=thirdparty%2Fdbus.git message-factory: move static functions only called by #if 0 code into another #if 0 The comment "This is really expensive and doesn't add too much coverage" is copied from the commented-out use of this code. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39231 Reviewed-by: Will Thompson --- diff --git a/dbus/dbus-message-factory.c b/dbus/dbus-message-factory.c index b5a06f1d8..efa4e0299 100644 --- a/dbus/dbus-message-factory.c +++ b/dbus/dbus-message-factory.c @@ -942,6 +942,9 @@ generate_byte_changed (DBusMessageDataIter *iter, return TRUE; } +#if 0 +/* This is really expensive and doesn't add too much coverage */ + static dbus_bool_t find_next_typecode (DBusMessageDataIter *iter, DBusString *data, @@ -1024,7 +1027,7 @@ static const int typecodes[] = { DBUS_TYPE_UNIX_FD, 255 /* random invalid typecode */ }; - + static dbus_bool_t generate_typecode_changed (DBusMessageDataIter *iter, DBusString *data, @@ -1081,6 +1084,7 @@ generate_typecode_changed (DBusMessageDataIter *iter, *expected_validity = DBUS_VALIDITY_UNKNOWN; return TRUE; } +#endif typedef struct {