Skip to content

Commit

Permalink
libcompat/reactor: drop dead code
Browse files Browse the repository at this point in the history
The following functions are dropped due to no users:
  flux_msghandler_addvec()
  flux_reactor_start()
  • Loading branch information
garlick committed Oct 11, 2017
1 parent be6c7f9 commit 478156b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
19 changes: 0 additions & 19 deletions src/common/libcompat/reactor.c
Expand Up @@ -177,17 +177,6 @@ int flux_msghandler_add (flux_t *h, int typemask, const char *pattern,
return msghandler_add (h, typemask, pattern, cb, arg);
}

int flux_msghandler_addvec (flux_t *h, msghandler_t *hv, int len, void *arg)
{
int i;

for (i = 0; i < len; i++)
if (msghandler_add (h, hv[i].typemask, hv[i].pattern,
hv[i].cb, arg) < 0)
return -1;
return 0;
}

void flux_msghandler_remove (flux_t *h, int typemask, const char *pattern)
{
struct ctx *ctx = getctx (h);
Expand Down Expand Up @@ -317,14 +306,6 @@ void flux_tmouthandler_remove (flux_t *h, int timer_id)
}
}

/* Newly deprecated message stuff
*/

int flux_reactor_start (flux_t *h)
{
return flux_reactor_run (flux_get_reactor (h), 0);
}

/*
* vi:tabstop=4 shiftwidth=4 expandtab
*/
13 changes: 0 additions & 13 deletions src/common/libcompat/reactor.h
Expand Up @@ -4,13 +4,11 @@
#include <flux/core.h>

#define flux_msghandler_add compat_msghandler_add
#define flux_msghandler_addvec compat_msghandler_addvec
#define flux_msghandler_remove compat_msghandler_remove
#define flux_fdhandler_add compat_fdhandler_add
#define flux_fdhandler_remove compat_fdhandler_remove
#define flux_tmouthandler_add compat_tmouthandler_add
#define flux_tmouthandler_remove compat_tmouthandler_remove
#define flux_reactor_start compat_reactor_start

/* FluxMsgHandler indicates msg is "consumed" by destroying it.
* Callbacks return 0 on success, -1 on error and set errno.
Expand All @@ -35,12 +33,6 @@ int flux_msghandler_add (flux_t *h, int typemask, const char *pattern,
FluxMsgHandler cb, void *arg)
__attribute__ ((deprecated));

/* Register a batch of FluxMsgHandler's
*/
int flux_msghandler_addvec (flux_t *h, msghandler_t *handlers, int len,
void *arg)
__attribute__ ((deprecated));

/* Unregister a FluxMsgHandler callback. Only the first callback with
* identical typemask and pattern is removed.
*/
Expand Down Expand Up @@ -74,11 +66,6 @@ void flux_tmouthandler_remove (flux_t *h, int timer_id)
__attribute__ ((deprecated));


/* Start the reactor.
*/
int flux_reactor_start (flux_t *h)
__attribute__ ((deprecated));

#endif /* !_FLUX_COMPAT_REACTOR_H */

/*
Expand Down

0 comments on commit 478156b

Please sign in to comment.