s3:idmap: remove unused idmap_remove_mapping().
authorMichael Adam <obnox@samba.org>
Thu, 22 Jan 2009 13:38:21 +0000 (14:38 +0100)
committerMichael Adam <obnox@samba.org>
Sat, 14 Aug 2010 00:10:34 +0000 (02:10 +0200)
Michael

source3/include/proto.h
source3/winbindd/idmap.c

index 5b6e5bdb8af2851691929fc22b5c613e91d19c46..eeee333382a579015c41c8ad0fc9b7ff340f2870 100644 (file)
@@ -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  */
 
index d6757a56396b38d0a1195cb6d83e0caed51c77b5..d6f37b80b9084b721c83f38a3c0c9cc737fa809d 100644 (file)
@@ -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);
-}