summaryrefslogtreecommitdiffstats
path: root/src/responder/pac
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 /src/responder/pac
parente41ac95891837e8a818f529cef9376cb190b8507 (diff)
downloadsssd-275102c8f332323571d55370a705d4610d24f510.tar.gz
sssd-275102c8f332323571d55370a705d4610d24f510.tar.xz
sssd-275102c8f332323571d55370a705d4610d24f510.zip
Remove unused functions
Diffstat (limited to 'src/responder/pac')
-rw-r--r--src/responder/pac/pacsrv.h2
-rw-r--r--src/responder/pac/pacsrv_cmd.c16
2 files changed, 0 insertions, 18 deletions
diff --git a/src/responder/pac/pacsrv.h b/src/responder/pac/pacsrv.h
index c087c01f0..64154dab9 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 a8191bb9e..a8b272e78 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;
-}