Sun, 20 Oct 2019 00:24:28 +0300
Replace functions which called once with their bodies
| libpurple/protocol.c | file | annotate | diff | comparison | revisions |
--- a/libpurple/protocol.c Sat Oct 19 13:04:53 2019 +0300 +++ b/libpurple/protocol.c Sun Oct 20 00:24:28 2019 +0300 @@ -83,22 +83,6 @@ 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_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);