X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=recv_common.c;h=31fd81f1ec52c3d0b6204e8b3663a7d36e14fbb3;hp=948de4745dda8c62bce88f31ec8362650ae85de0;hb=a1610c2bd6e3097c6473c5403bfd59425b2058ba;hpb=25ca76ec354120efa561879f50c486340e14d0ca diff --git a/recv_common.c b/recv_common.c index 948de474..31fd81f1 100644 --- a/recv_common.c +++ b/recv_common.c @@ -15,27 +15,6 @@ #include "recv.h" #include "string.h" -/** - * Call the init function of each paraslash receiver. - * - * Receivers employ the user_data feature of the lopsub library: Each receiver - * of the recv_cmd suite defines a struct receiver as its user data. - * recv_init() obtains a pointer to this structure by calling lls_user_data(). - * If the receiver has an init function (i.e., if ->init is not NULL), ->init() - * is called to initialize the receiver. - */ -void recv_init(void) -{ - int i; - - FOR_EACH_RECEIVER(i) { - const struct lls_command *cmd = RECV_CMD(i); - const struct receiver *r = lls_user_data(cmd); - if (r && r->init) - r->init(); - } -} - /** * Check if the given string is a valid receiver specifier. *