summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-03-03 12:45:21 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-03-04 10:41:31 +0100
commit275102c8f332323571d55370a705d4610d24f510 (patch)
treed3ec4797bd6ea0897e432e1fcaccc5dad01ea0d2
parente41ac95891837e8a818f529cef9376cb190b8507 (diff)
downloadsssd-275102c8f332323571d55370a705d4610d24f510.tar.gz
sssd-275102c8f332323571d55370a705d4610d24f510.tar.bz2
sssd-275102c8f332323571d55370a705d4610d24f510.zip
Remove unused functions
-rw-r--r--src/responder/nss/nsssrv.h2
-rw-r--r--src/responder/nss/nsssrv_cmd.c16
-rw-r--r--src/responder/pac/pacsrv.h2
-rw-r--r--src/responder/pac/pacsrv_cmd.c16
4 files changed, 0 insertions, 36 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;
-}
diff --git a/src/responder/pac/pacsrv.h b/src/responder/pac/pacsrv.h
index c087c01f..64154dab 100644
--- a/src/responder/pac/pacsrv.h
+++ b/src/responder/pac/pacsrv.h
@@ -77,8 +77,6 @@ struct pac_dom_grps {
gid_t *gids;
};
-int pac_cmd_execute(struct cli_ctx *cctx);
-
struct sss_cmd_table *get_pac_cmds(void);
errno_t local_sid_to_id(struct local_mapping_ranges *map, struct dom_sid *sid,
diff --git a/src/responder/pac/pacsrv_cmd.c b/src/responder/pac/pacsrv_cmd.c
index a8191bb9..a8b272e7 100644
--- a/src/responder/pac/pacsrv_cmd.c
+++ b/src/responder/pac/pacsrv_cmd.c
@@ -784,19 +784,3 @@ static struct sss_cmd_table pac_cmds[] = {
struct sss_cmd_table *get_pac_cmds(void) {
return pac_cmds;
}
-
-int pac_cmd_execute(struct cli_ctx *cctx)
-{
- enum sss_cli_command cmd;
- int i;
-
- cmd = sss_packet_get_cmd(cctx->creq->in);
-
- for (i = 0; pac_cmds[i].cmd != SSS_CLI_NULL; i++) {
- if (cmd == pac_cmds[i].cmd) {
- return pac_cmds[i].fn(cctx);
- }
- }
-
- return EINVAL;
-}