Mercurial > masqmail
diff src/message.c @ 343:9149d893eb52
refactoring: ``insourced'' create_msg_out_list()
The function is only four lines and used only once.
It's simpler to have the four lines just at the actual place.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Sat, 03 Sep 2011 18:25:02 +0200 |
parents | 996b53a50f55 |
children | 4c046561582a |
line wrap: on
line diff
--- a/src/message.c Wed Aug 31 09:39:40 2011 +0200 +++ b/src/message.c Sat Sep 03 18:25:02 2011 +0200 @@ -200,19 +200,6 @@ return NULL; } -GList* -create_msg_out_list(GList * msg_list) -{ - GList *msgout_list = NULL; - GList *msg_node; - - foreach(msg_list, msg_node) { - message *msg = (message *) (msg_node->data); - msgout_list = g_list_append(msgout_list, create_msg_out(msg)); - } - return msgout_list; -} - void destroy_msg_out(msg_out * msgout) {