Skip to content

Commit

Permalink
Remove unnecessary branch for [dusk-network#414]
Browse files Browse the repository at this point in the history
  • Loading branch information
3for committed Mar 2, 2021
1 parent fe395af commit f1ed4bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Removed
- Deprecated `anyhow` and `thiserror` [#343](https://github.com/dusk-network/plonk/issues/343)
- Remove unnecessary `match` branch for `var_c` [#414](https://github.com/dusk-network/plonk/issues/414)
### Changed
- Updated the native errors to all originate from the same enum

Expand Down
8 changes: 1 addition & 7 deletions src/constraint_system/logic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,7 @@ impl StandardComposer {
// Get variables pointing to the previous accumulated values.
let var_a = self.add_input(left_accumulator);
let var_b = self.add_input(right_accumulator);
// On the last row of the program memory, we need to pad the
// output wire with a zero since we started to include it's
// accumulators one gate before the other wire ones.
let var_c = match i == num_quads {
true => self.zero_var,
false => self.add_input(prod_quad_fr),
};
let var_c = self.add_input(prod_quad_fr);
let var_4 = self.add_input(out_accumulator);
// Add the variables to the variable map linking them to it's
// corresponding gate index.
Expand Down

0 comments on commit f1ed4bd

Please sign in to comment.