s4-libnet_vampire: Remove unused self_corrected_schema
authorKamen Mazdrashki <kamenim@samba.org>
Sun, 3 Oct 2010 01:29:08 +0000 (04:29 +0300)
committerKamen Mazdrashki <kamenim@samba.org>
Sun, 10 Oct 2010 10:40:38 +0000 (10:40 +0000)
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Sun Oct 10 10:40:38 UTC 2010 on sn-devel-104

source4/libnet/libnet_vampire.c

index a668bb5c5d4fb9f934381f7b576d59ae2714c10f..6a94f076e569319e33a6c22338040665d729de15 100644 (file)
@@ -68,9 +68,6 @@ struct libnet_vampire_cb_state {
         * converted, because we may not know them yet */
        struct dsdb_schema *self_made_schema;
 
-       /* 2nd pass, with full ID->OID->name table */
-       struct dsdb_schema *self_corrected_schema;
-
        /* prefixMap in LDB format, from the remote DRS server */
        DATA_BLOB prefixmap_blob;
        const struct dsdb_schema *schema;
@@ -565,18 +562,11 @@ NTSTATUS libnet_vampire_cb_schema_chunk(void *private_data,
                 * other. */
                s->self_made_schema = dsdb_new_schema(s);
                NT_STATUS_HAVE_NO_MEMORY(s->self_made_schema);
-               s->self_corrected_schema = dsdb_new_schema(s);
-               NT_STATUS_HAVE_NO_MEMORY(s->self_corrected_schema);
 
                status = dsdb_load_prefixmap_from_drsuapi(s->self_made_schema, mapping_ctr);
                if (!W_ERROR_IS_OK(status)) {
                        return werror_to_ntstatus(status);
                }
-
-               status = dsdb_load_prefixmap_from_drsuapi(s->self_corrected_schema, mapping_ctr);
-               if (!W_ERROR_IS_OK(status)) {
-                       return werror_to_ntstatus(status);
-               }
        } else {
                status = dsdb_schema_pfm_contains_drsuapi_pfm(s->self_made_schema->prefixmap, mapping_ctr);
                if (!W_ERROR_IS_OK(status)) {