Skip to content

Commit 1334d7c

Browse files
committed
parallel
1 parent b1a197c commit 1334d7c

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

crates/swc_ecma_utils/src/parallel.rs

-17
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ pub trait ParallelExt: Parallel {
6969
F: Send + Sync + Fn(&mut Self, usize, I::Item);
7070
}
7171

72-
#[cfg(feature = "concurrent")]
7372
impl<T> ParallelExt for T
7473
where
7574
T: Parallel,
@@ -113,19 +112,3 @@ where
113112
});
114113
}
115114
}
116-
117-
#[cfg(not(feature = "concurrent"))]
118-
impl<T> ParallelExt for T
119-
where
120-
T: Parallel,
121-
{
122-
fn maybe_par_idx_raw<I, F>(&mut self, _threshold: usize, nodes: I, op: &F)
123-
where
124-
I: Items,
125-
F: Send + Sync + Fn(&mut Self, usize, I::Elem),
126-
{
127-
for (idx, n) in nodes.into_iter().enumerate() {
128-
op(self, idx, n);
129-
}
130-
}
131-
}

0 commit comments

Comments
 (0)