s4-dsdb: fix a warning about unused variable
authorMatthieu Patou <mat@matws.net>
Wed, 30 May 2012 06:03:09 +0000 (23:03 -0700)
committerMatthieu Patou <mat@matws.net>
Sat, 23 Jun 2012 06:16:04 +0000 (23:16 -0700)
source4/dsdb/samdb/ldb_modules/repl_meta_data.c

index cda9b99c7bc5a436ecb082be1d9029918eb0de18..a558a64999ef146764b65a71f9668a06b2005f33 100644 (file)
@@ -2790,7 +2790,6 @@ static int replmd_delete(struct ldb_module *module, struct ldb_request *req)
                                                OBJECT_TOMBSTONE=4, OBJECT_REMOVED=5 };
        enum deletion_state deletion_state, next_deletion_state;
        bool enabled;
-       int functional_level;
 
        if (ldb_dn_is_special(req->op.del.dn)) {
                return ldb_next_request(module, req);
@@ -2807,8 +2806,6 @@ static int replmd_delete(struct ldb_module *module, struct ldb_request *req)
                return LDB_ERR_OPERATIONS_ERROR;
        }
 
-       functional_level = dsdb_functional_level(ldb);
-
        old_dn = ldb_dn_copy(tmp_ctx, req->op.del.dn);
 
        /* we need the complete msg off disk, so we can work out which