s3-idmap: remove (now) unused function idmap_cache_set_sid2both()
authorAndrew Bartlett <abartlet@samba.org>
Wed, 2 May 2012 08:44:16 +0000 (10:44 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 2 May 2012 11:18:05 +0000 (13:18 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
source3/lib/idmap_cache.c
source3/lib/idmap_cache.h

index 6bba5b0551d3c5db0055d519143a585e629d7f43..773579bd14f34fc3e34a7e548a9ff4a63caa7862 100644 (file)
@@ -369,30 +369,6 @@ void idmap_cache_set_sid2gid(const struct dom_sid *sid, gid_t gid)
        return;
 }
 
-
-/**
- * Store a mapping in the idmap cache
- * @param[in] sid              the sid to map
- * @param[in] gid              the gid to map
- *
- * If both parameters are valid values, then a positive mapping in both
- * directions is stored. If "is_null_sid(sid)" is true, then this will be a
- * negative mapping of gid, we want to cache that for this gid we could not
- * find anything. Likewise if "gid==-1", then we want to cache that we did not
- * find a mapping for the sid passed here.
- */
-
-void idmap_cache_set_sid2both(const struct dom_sid *sid, gid_t gid)
-{
-       struct unixid id;
-       id.type = ID_TYPE_BOTH;
-       id.id = gid;
-
-       idmap_cache_set_sid2unixid(sid, &id);
-       return;
-}
-
-
 static char* key_xid2sid_str(TALLOC_CTX* mem_ctx, char t, const char* id) {
        return talloc_asprintf(mem_ctx, "IDMAP/%cID2SID/%s", t, id);
 }
index afb8c169403f1cc30fbc1ba2a3139163a7ba3de7..088526635e6716bd93fd0fb5cd83fccc72b82d9a 100644 (file)
@@ -34,7 +34,6 @@ bool idmap_cache_find_gid2sid(gid_t gid, struct dom_sid *sid, bool *expired);
 void idmap_cache_set_sid2unixid(const struct dom_sid *sid, struct unixid *unix_id);
 void idmap_cache_set_sid2uid(const struct dom_sid *sid, uid_t uid);
 void idmap_cache_set_sid2gid(const struct dom_sid *sid, gid_t gid);
-void idmap_cache_set_sid2both(const struct dom_sid *sid, uid_t uid);
 
 bool idmap_cache_del_uid(uid_t uid);
 bool idmap_cache_del_gid(gid_t gid);