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-list.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'dbus/dbus-list.c') diff --git a/dbus/dbus-list.c b/dbus/dbus-list.c index 00b03d41..949e70a8 100644 --- a/dbus/dbus-list.c +++ b/dbus/dbus-list.c @@ -126,6 +126,7 @@ link_before (DBusList **list, } } +#ifdef DBUS_BUILD_TESTS static void link_after (DBusList **list, DBusList *after_this_link, @@ -145,6 +146,7 @@ link_after (DBusList **list, link->next->prev = link; } } +#endif /* DBUS_BUILD_TESTS */ /** @} */ @@ -313,6 +315,7 @@ _dbus_list_prepend_link (DBusList **list, link_before (list, *list, link); } +#ifdef DBUS_BUILD_TESTS /** * Inserts data into the list before the given existing link. * @@ -341,7 +344,9 @@ _dbus_list_insert_before (DBusList **list, return TRUE; } +#endif /* DBUS_BUILD_TESTS */ +#ifdef DBUS_BUILD_TESTS /** * Inserts data into the list after the given existing link. * @@ -370,6 +375,7 @@ _dbus_list_insert_after (DBusList **list, return TRUE; } +#endif /* DBUS_BUILD_TESTS */ /** * Inserts a link into the list before the given existing link. @@ -389,6 +395,7 @@ _dbus_list_insert_before_link (DBusList **list, link_before (list, before_this_link, link); } +#ifdef DBUS_BUILD_TESTS /** * Inserts a link into the list after the given existing link. * @@ -406,6 +413,7 @@ _dbus_list_insert_after_link (DBusList **list, else link_after (list, after_this_link, link); } +#endif /* DBUS_BUILD_TESTS */ /** * Removes a value from the list. Only removes the @@ -690,6 +698,7 @@ _dbus_list_pop_last (DBusList **list) return data; } +#ifdef DBUS_BUILD_TESTS /** * Removes the last link in the list and returns it. This is a * constant-time operation. @@ -710,6 +719,7 @@ _dbus_list_pop_last_link (DBusList **list) return link; } +#endif /* DBUS_BUILD_TESTS */ /** * Copies a list. This is a linear-time operation. If there isn't -- cgit