Skip to content

Commit

Permalink
chore: remove dead code from r1cs backend (zksecurity#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
spiral-ladder authored and levihackerman-102 committed Jun 11, 2024
1 parent 88aa4d1 commit d376f9a
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/backends/r1cs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,25 +94,6 @@ where
}
}

/// Create a linear combination to represent constant zero.
fn zero(span: Span) -> Self {
LinearCombination {
terms: HashMap::new(),
constant: F::zero(),
span,
}
}

/// Create a linear combination from a list of vars
fn from_vars(vars: Vec<CellVar>, span: Span) -> Self {
let terms = vars.into_iter().map(|var| (var, F::one())).collect();
LinearCombination {
terms,
constant: F::zero(),
span,
}
}

/// Create a linear combination from a constant.
fn from_const(cst: F, span: Span) -> Self {
LinearCombination {
Expand Down

0 comments on commit d376f9a

Please sign in to comment.