From 9de5513834a63832bd6e0a39e15958e2133f27ff Mon Sep 17 00:00:00 2001 From: qarkai Date: Sun, 20 Oct 2019 00:24:28 +0300 Subject: [PATCH] Replace functions which called once with their bodies --- libpurple/protocol.c | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/libpurple/protocol.c b/libpurple/protocol.c index f2ce194e8a..0d23cfe295 100644 --- a/libpurple/protocol.c +++ b/libpurple/protocol.c @@ -83,22 +83,6 @@ purple_protocol_get_whiteboard_ops(const PurpleProtocol *protocol) return protocol->whiteboard_ops; } -static inline void -user_splits_free(PurpleProtocol *protocol) -{ - g_return_if_fail(PURPLE_IS_PROTOCOL(protocol)); - - g_list_free_full(protocol->user_splits, (GDestroyNotify)purple_account_user_split_destroy); -} - -static inline void -account_options_free(PurpleProtocol *protocol) -{ - g_return_if_fail(PURPLE_IS_PROTOCOL(protocol)); - - g_list_free_full(protocol->account_options, (GDestroyNotify)purple_account_option_destroy); -} - static void icon_spec_free(PurpleProtocol *protocol) { @@ -143,8 +127,8 @@ purple_protocol_finalize(GObject *object) purple_prefs_disconnect_by_handle(protocol); - user_splits_free(protocol); - account_options_free(protocol); + g_list_free_full(protocol->user_splits, (GDestroyNotify)purple_account_user_split_destroy); + g_list_free_full(protocol->account_options, (GDestroyNotify)purple_account_option_destroy); icon_spec_free(protocol); parent_class->finalize(object); -- 2.11.4.GIT