Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasJacob committed May 27, 2024
1 parent c4a7054 commit edf23f0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 44 deletions.
18 changes: 0 additions & 18 deletions src/constraints/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,24 +179,6 @@ impl ConstraintCell {
}
}

// impl Constraint for ConstraintCell {
// fn references(&self) -> Vec<ParametricCell> {
// self.borrow().references()
// }

// fn loss_value(&self) -> f64 {
// self.borrow().loss_value()
// }

// fn update_gradient(&mut self) {
// self.borrow_mut().update_gradient();
// }

// fn get_type(&self) -> ConstraintType {
// self.borrow().get_type()
// }
// }

impl PartialEq for ConstraintCell {
fn eq(&self, other: &Self) -> bool {
ptr::eq(self.as_ptr(), other.as_ptr())
Expand Down
26 changes: 0 additions & 26 deletions src/primitives/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,32 +124,6 @@ impl ParametricCell {
}
}

// impl Parametric for ParametricCell {
// fn references(&self) -> Vec<ParametricCell> {
// self.borrow().references()
// }

// fn zero_gradient(&mut self) {
// self.borrow_mut().zero_gradient();
// }

// fn get_data(&self) -> DVector<f64> {
// self.borrow().get_data()
// }

// fn set_data(&mut self, data: DVectorView<f64>) {
// self.borrow_mut().set_data(data);
// }

// fn get_gradient(&self) -> DVector<f64> {
// self.borrow().get_gradient()
// }

// fn to_primitive(&self) -> Primitive {
// self.borrow().to_primitive()
// }
// }

impl PartialEq for ParametricCell {
fn eq(&self, other: &Self) -> bool {
ptr::eq(self.as_ptr(), other.as_ptr())
Expand Down

0 comments on commit edf23f0

Please sign in to comment.