From e3b0da188b966341e8ce7f4a28b36090ef8a3144 Mon Sep 17 00:00:00 2001 From: Chris Hennick Date: Sun, 14 May 2023 18:55:12 -0700 Subject: [PATCH] Revert "Refactor: add subdirectory-after-writing-parent option" This reverts commit c31d85930babd1867940b06b6d02a3a1a489dbc5. --- fuzz/fuzz_targets/fuzz_write.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/fuzz/fuzz_targets/fuzz_write.rs b/fuzz/fuzz_targets/fuzz_write.rs index ce9f213c..5df9e50d 100644 --- a/fuzz/fuzz_targets/fuzz_write.rs +++ b/fuzz/fuzz_targets/fuzz_write.rs @@ -13,9 +13,6 @@ pub enum BasicFileOperation { options: zip_next::write::FileOptions, }, WriteDirectory(zip_next::write::FileOptions), - WriteSubdirectory { - parent_dir: BasicFileOperation::WriteSubdirectory - }, WriteSymlinkWithTarget { target: Box, options: zip_next::write::FileOptions, @@ -60,10 +57,6 @@ fn do_operation(writer: &mut RefCell>, BasicFileOperation::WriteDirectory(options) => { writer.borrow_mut().add_directory(name, options)?; } - BasicFileOperation::WriteSubdirectory(parent_dir) => { - do_operation(writer, parent_dir)?; - writer.borrow_mut().add_directory(parent_dir.referenceable_name() + name, options)?; - } BasicFileOperation::WriteSymlinkWithTarget {target, options} => { writer.borrow_mut().add_symlink(name, target.to_string_lossy(), options)?; }