From 2d47b59b16e84e1994d991d3a3e4eb0c5a24571a Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 22 Jun 2011 16:05:08 +0100 Subject: [PATCH] _dbus_header_field_to_string: remove, unused --- dbus/dbus-internals.c | 36 ------------------------------------ dbus/dbus-internals.h | 2 -- 2 files changed, 0 insertions(+), 38 deletions(-) diff --git a/dbus/dbus-internals.c b/dbus/dbus-internals.c index 95a491f..9047e5b 100644 --- a/dbus/dbus-internals.c +++ b/dbus/dbus-internals.c @@ -829,42 +829,6 @@ _dbus_get_local_machine_uuid_encoded (DBusString *uuid_str) return ok; } -#ifdef DBUS_BUILD_TESTS -/** - * Returns a string describing the given name. - * - * @param header_field the field to describe - * @returns a constant string describing the field - */ -const char * -_dbus_header_field_to_string (int header_field) -{ - switch (header_field) - { - case DBUS_HEADER_FIELD_INVALID: - return "invalid"; - case DBUS_HEADER_FIELD_PATH: - return "path"; - case DBUS_HEADER_FIELD_INTERFACE: - return "interface"; - case DBUS_HEADER_FIELD_MEMBER: - return "member"; - case DBUS_HEADER_FIELD_ERROR_NAME: - return "error-name"; - case DBUS_HEADER_FIELD_REPLY_SERIAL: - return "reply-serial"; - case DBUS_HEADER_FIELD_DESTINATION: - return "destination"; - case DBUS_HEADER_FIELD_SENDER: - return "sender"; - case DBUS_HEADER_FIELD_SIGNATURE: - return "signature"; - default: - return "unknown"; - } -} -#endif /* DBUS_BUILD_TESTS */ - #ifndef DBUS_DISABLE_CHECKS /** String used in _dbus_return_if_fail macro */ const char *_dbus_return_if_fail_warning_format = diff --git a/dbus/dbus-internals.h b/dbus/dbus-internals.h index dcef7d7..cd6b92f 100644 --- a/dbus/dbus-internals.h +++ b/dbus/dbus-internals.h @@ -259,8 +259,6 @@ void _dbus_verbose_bytes_of_string (const DBusString *str, int start, int len); -const char* _dbus_header_field_to_string (int header_field); - extern const char *_dbus_no_memory_message; #define _DBUS_SET_OOM(error) dbus_set_error_const ((error), DBUS_ERROR_NO_MEMORY, _dbus_no_memory_message) -- 1.7.5.4