Replace functions which called once with their bodies

Sun, 20 Oct 2019 00:24:28 +0300

author
qarkai <qarkai@gmail.com>
date
Sun, 20 Oct 2019 00:24:28 +0300
changeset 40065
3b61e89f42bd
parent 40064
467eecebfa70
child 40066
265da3de02ed
child 40072
67e558b6711b
child 40075
f9cffc9182e2
child 40080
a58c06469198

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);

mercurial