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 diff
     1.1 --- a/src/message.c	Wed Aug 31 09:39:40 2011 +0200
     1.2 +++ b/src/message.c	Sat Sep 03 18:25:02 2011 +0200
     1.3 @@ -200,19 +200,6 @@
     1.4  	return NULL;
     1.5  }
     1.6  
     1.7 -GList*
     1.8 -create_msg_out_list(GList * msg_list)
     1.9 -{
    1.10 -	GList *msgout_list = NULL;
    1.11 -	GList *msg_node;
    1.12 -
    1.13 -	foreach(msg_list, msg_node) {
    1.14 -		message *msg = (message *) (msg_node->data);
    1.15 -		msgout_list = g_list_append(msgout_list, create_msg_out(msg));
    1.16 -	}
    1.17 -	return msgout_list;
    1.18 -}
    1.19 -
    1.20  void
    1.21  destroy_msg_out(msg_out * msgout)
    1.22  {