Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed May 18, 2023
1 parent a621c1f commit 8b4931a
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions packages/next-swc/crates/core/src/server_actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1474,28 +1474,6 @@ impl VisitMut for ClosureReplacer<'_> {
));
}
}

// fn visit_mut_prop(&mut self, p: &mut Prop) {
// p.visit_mut_children_with(self);

// if let Prop::Shorthand(i) = p {
// if let Some(index) = self.index_of_id(i) {
// *p = Prop::KeyValue(KeyValueProp {
// key: PropName::Ident(i.clone()),
// value: MemberExpr {
// span: DUMMY_SP,
// obj: self.closure_arg.clone().into(),
// prop: MemberProp::Computed(ComputedPropName {
// span: DUMMY_SP,
// expr: index.into(),
// }),
// }
// .into(),
// });
// }
// }
// }

noop_visit_mut_type!();
}

Expand Down

0 comments on commit 8b4931a

Please sign in to comment.