]> wimlib.net Git - wimlib/blobdiff - src/update_image.c
Limit can_modify_wim() calls; remove can_delete_from_wim()
[wimlib] / src / update_image.c
index 81c17244141baf42f9a48890a7422a0b5835c59a..fc149f0a415cd6e5771783634abc91dab89b9200 100644 (file)
@@ -1433,14 +1433,6 @@ wimlib_update_image(WIMStruct *wim,
 
        DEBUG("Updating image %d with %zu commands", image, num_cmds);
 
-       if (have_command_type(cmds, num_cmds, WIMLIB_UPDATE_OP_DELETE))
-               ret = can_delete_from_wim(wim);
-       else
-               ret = can_modify_wim(wim);
-
-       if (ret)
-               goto out;
-
        /* Load the metadata for the image to modify (if not loaded already) */
        ret = select_wim_image(wim, image);
        if (ret)