s3:idmap_tdb: remove unused idmap_tdb_load_ranges()
authorMichael Adam <obnox@samba.org>
Thu, 17 Jun 2010 06:07:40 +0000 (08:07 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 23 Jun 2010 10:22:13 +0000 (12:22 +0200)
The idmap_tdb_state (which should actually be called idmap_tdb_alloc_context)
is being removed since the alloc part is combined with the id mapping part.

source3/winbindd/idmap_tdb.c

index 3e3546a7e80d9ffc667aa6877dee5b6e74563e1c..0d400c985352516798aba5f1d1951119f4f2ffe4 100644 (file)
@@ -207,41 +207,6 @@ static bool idmap_tdb_upgrade(struct idmap_domain *dom, struct db_context *db)
        return True;
 }
 
-static NTSTATUS idmap_tdb_load_ranges(void)
-{
-       uid_t low_uid = 0;
-       uid_t high_uid = 0;
-       gid_t low_gid = 0;
-       gid_t high_gid = 0;
-
-       if (!lp_idmap_uid(&low_uid, &high_uid)) {
-               DEBUG(1, ("idmap uid missing\n"));
-               return NT_STATUS_UNSUCCESSFUL;
-       }
-
-       if (!lp_idmap_gid(&low_gid, &high_gid)) {
-               DEBUG(1, ("idmap gid missing\n"));
-               return NT_STATUS_UNSUCCESSFUL;
-       }
-
-       idmap_tdb_state.low_uid = low_uid;
-       idmap_tdb_state.high_uid = high_uid;
-       idmap_tdb_state.low_gid = low_gid;
-       idmap_tdb_state.high_gid = high_gid;
-
-       if (idmap_tdb_state.high_uid <= idmap_tdb_state.low_uid) {
-               DEBUG(1, ("idmap uid range missing or invalid\n"));
-               return NT_STATUS_UNSUCCESSFUL;
-       }
-
-       if (idmap_tdb_state.high_gid <= idmap_tdb_state.low_gid) {
-               DEBUG(1, ("idmap gid range missing or invalid\n"));
-               return NT_STATUS_UNSUCCESSFUL;
-       }
-
-       return NT_STATUS_OK;
-}
-
 static NTSTATUS idmap_tdb_open_db(struct idmap_domain *dom)
 {
        NTSTATUS ret;