From 7bf62e31a3c820852271768fafc04ba95c31a19f Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Mon, 17 Jan 2005 03:53:40 +0000 Subject: 2005-01-16 Havoc Pennington This is about it on what can be disabled/deleted from libdbus easily, back below 150K anyhow. Deeper cuts are more work than just turning the code off as I've done here. * dbus/dbus-marshal-basic.c (_dbus_pack_int32): we don't need the signed int convenience funcs * dbus/dbus-internals.c (_dbus_verbose_real): omit when not in verbose mode * dbus/dbus-string-util.c, dbus/dbus-string.c: more breaking things out of libdbus * dbus/dbus-sysdeps.c, dbus/dbus-sysdeps-util.c: same * dbus/dbus-hash.c: purge the TWO_STRINGS crap (well, make it tests-enabled-only, though it should probably be deleted) * dbus/dbus-message-util.c: same stuff * dbus/dbus-auth-util.c: same stuff --- dbus/dbus-internals.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dbus/dbus-internals.c') diff --git a/dbus/dbus-internals.c b/dbus/dbus-internals.c index eba3174d..8d0a968b 100644 --- a/dbus/dbus-internals.c +++ b/dbus/dbus-internals.c @@ -174,6 +174,8 @@ _dbus_warn (const char *format, va_end (args); } +#ifdef DBUS_ENABLE_VERBOSE_MODE + static dbus_bool_t verbose_initted = FALSE; /** @@ -238,6 +240,8 @@ _dbus_verbose_reset_real (void) verbose_initted = FALSE; } +#endif /* DBUS_ENABLE_VERBOSE_MODE */ + /** * Duplicates a string. Result must be freed with * dbus_free(). Returns #NULL if memory allocation fails. @@ -354,6 +358,7 @@ _dbus_string_array_contains (const char **array, return FALSE; } +#ifdef DBUS_BUILD_TESTS /** * Returns a string describing the given name. * @@ -387,6 +392,7 @@ _dbus_header_field_to_string (int header_field) return "unknown"; } } +#endif /* DBUS_BUILD_TESTS */ #ifndef DBUS_DISABLE_CHECKS /** String used in _dbus_return_if_fail macro */ -- cgit