From d888e726a9b1e1e1603211821a71fd88aea566c7 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 22 Jan 2009 14:38:21 +0100 Subject: s3:idmap: remove unused idmap_remove_mapping(). Michael --- source3/include/proto.h | 1 - source3/winbindd/idmap.c | 17 ----------------- 2 files changed, 18 deletions(-) diff --git a/source3/include/proto.h b/source3/include/proto.h index 5b6e5bdb8a..eeee333382 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -6022,7 +6022,6 @@ NTSTATUS idmap_backends_sid_to_unixid(const char *domname, struct id_map *id); NTSTATUS idmap_new_mapping(const struct dom_sid *psid, enum id_type type, struct unixid *pxid); -NTSTATUS idmap_remove_mapping(const struct id_map *map); /* The following definitions come from winbindd/idmap_cache.c */ diff --git a/source3/winbindd/idmap.c b/source3/winbindd/idmap.c index d6757a5639..d6f37b80b9 100644 --- a/source3/winbindd/idmap.c +++ b/source3/winbindd/idmap.c @@ -773,20 +773,3 @@ NTSTATUS idmap_backends_sid_to_unixid(const char *domain, struct id_map *id) return dom->methods->sids_to_unixids(dom, maps); } - -NTSTATUS idmap_remove_mapping(const struct id_map *map) -{ - struct idmap_domain *dom; - - dom = idmap_find_domain(NULL); - if (dom == NULL) { - DEBUG(3, ("no default domain, no place to write\n")); - return NT_STATUS_ACCESS_DENIED; - } - if (dom->methods->remove_mapping == NULL) { - DEBUG(3, ("default domain not writable\n")); - return NT_STATUS_MEDIA_WRITE_PROTECTED; - } - - return dom->methods->remove_mapping(dom, map); -} -- cgit