Skip to content

Commit

Permalink
feat(front/mergers): remove redundant block
Browse files Browse the repository at this point in the history
  • Loading branch information
hanmindev committed Feb 8, 2024
1 parent 0b6bd91 commit d873342
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions src/front/mergers/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,39 +54,6 @@ fn convert_fn_call(context: &mut Context, ast_node: &FnCall) -> Vec<IrStatement>
s
}

//
// fn convert_unary_op(ast_node: &UnOp) -> IrUnOp {
// return match ast_node {
// UnOp::Neg => IrUnOp::Neg,
// UnOp::Not => IrUnOp::Not,
// UnOp::Deref => IrUnOp::Deref,
// UnOp::Ref => IrUnOp::Ref,
// UnOp::PreInc => IrUnOp::PreInc,
// UnOp::PreDec => IrUnOp::PreDec,
// UnOp::PostInc => IrUnOp::PostInc,
// UnOp::PostDec => IrUnOp::PostDec,
// };
// }
//
// fn convert_binary_op(ast_node: &BinOp) -> IrBinOp {
// return match ast_node {
// BinOp::Add => IrBinOp::Add,
// BinOp::Sub => IrBinOp::Sub,
// BinOp::Mul => IrBinOp::Mul,
// BinOp::Div => IrBinOp::Div,
// BinOp::Mod => IrBinOp::Mod,
// BinOp::Eq => IrBinOp::Eq,
// BinOp::Neq => IrBinOp::Neq,
// BinOp::Lt => IrBinOp::Lt,
// BinOp::Gt => IrBinOp::Gt,
// BinOp::Leq => IrBinOp::Leq,
// BinOp::Geq => IrBinOp::Geq,
// BinOp::And => IrBinOp::And,
// BinOp::Or => IrBinOp::Or,
// };
// }
//

fn set_from_atomic(
context: &mut Context,
ast_node: &AtomicExpression,
Expand Down

0 comments on commit d873342

Please sign in to comment.