From 8461835b2c0e067e1ce64dbd7266f5f7b7f09acf Mon Sep 17 00:00:00 2001 From: Kevin Ness <46825870+nekevss@users.noreply.github.com> Date: Fri, 27 Dec 2024 00:53:27 -0600 Subject: [PATCH] Remove duplicate iteration --- tests/tester/src/read.rs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/tests/tester/src/read.rs b/tests/tester/src/read.rs index 8087ecc6ca9..bbd437d799c 100644 --- a/tests/tester/src/read.rs +++ b/tests/tester/src/read.rs @@ -97,26 +97,6 @@ pub(super) fn read_harness(test262_path: &Path) -> Result { read_harness_dir(&test262_path.join("harness"), &mut includes)?; - for entry in fs::read_dir(test262_path.join("harness")) - .wrap_err("error reading the harness directory")? - { - let entry = entry?; - let file_name = entry.file_name(); - let file_name = file_name.to_string_lossy(); - - if file_name == "assert.js" - || file_name == "sta.js" - || file_name == "doneprintHandle.js" - || file_name == "sm" - { - continue; - } - - includes.insert( - file_name.into_owned().into_boxed_str(), - read_harness_file(entry.path())?, - ); - } let assert = read_harness_file(test262_path.join("harness/assert.js"))?; let sta = read_harness_file(test262_path.join("harness/sta.js"))?; let doneprint_handle = read_harness_file(test262_path.join("harness/doneprintHandle.js"))?;