diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-03-03 12:45:21 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-03-04 10:41:31 +0100 |
commit | 275102c8f332323571d55370a705d4610d24f510 (patch) | |
tree | d3ec4797bd6ea0897e432e1fcaccc5dad01ea0d2 /src/responder/nss | |
parent | e41ac95891837e8a818f529cef9376cb190b8507 (diff) | |
download | sssd-275102c8f332323571d55370a705d4610d24f510.tar.gz sssd-275102c8f332323571d55370a705d4610d24f510.tar.bz2 sssd-275102c8f332323571d55370a705d4610d24f510.zip |
Remove unused functions
Diffstat (limited to 'src/responder/nss')
-rw-r--r-- | src/responder/nss/nsssrv.h | 2 | ||||
-rw-r--r-- | src/responder/nss/nsssrv_cmd.c | 16 |
2 files changed, 0 insertions, 18 deletions
diff --git a/src/responder/nss/nsssrv.h b/src/responder/nss/nsssrv.h index de15f53e..354782b9 100644 --- a/src/responder/nss/nsssrv.h +++ b/src/responder/nss/nsssrv.h @@ -72,8 +72,6 @@ struct nss_ctx { struct nss_packet; -int nss_cmd_execute(struct cli_ctx *cctx); - struct sss_cmd_table *get_nss_cmds(void); #endif /* __NSSSRV_H__ */ diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c index 7704f469..7f31a2b2 100644 --- a/src/responder/nss/nsssrv_cmd.c +++ b/src/responder/nss/nsssrv_cmd.c @@ -3904,19 +3904,3 @@ static struct sss_cmd_table nss_cmds[] = { struct sss_cmd_table *get_nss_cmds(void) { return nss_cmds; } - -int nss_cmd_execute(struct cli_ctx *cctx) -{ - enum sss_cli_command cmd; - int i; - - cmd = sss_packet_get_cmd(cctx->creq->in); - - for (i = 0; nss_cmds[i].cmd != SSS_CLI_NULL; i++) { - if (cmd == nss_cmds[i].cmd) { - return nss_cmds[i].fn(cctx); - } - } - - return EINVAL; -} |