remove dead code

This commit is contained in:
Simon Gardling
2022-03-10 10:15:52 -05:00
parent 30c424ebd9
commit cc2722e58c
2 changed files with 0 additions and 11 deletions

View File

@@ -77,7 +77,6 @@ impl FunctionEntry {
self.func_str = func_str.clone();
self.function = BackingFunction::new(&func_str);
self.output.invalidate_whole();
self.output.invalidate_points();
}
self.derivative = derivative;
@@ -153,7 +152,6 @@ impl FunctionEntry {
let step = (self.integral_min_x - self.integral_max_x).abs() / (self.integral_num as f64);
let mut last_positive: Option<bool> = None;
let mut area: f64 = 0.0;
let data2: Vec<(f64, f64)> = (0..self.integral_num)
.map(|e| {
@@ -174,10 +172,6 @@ impl FunctionEntry {
}
};
if last_positive.is_none() {
last_positive = Some(x.is_sign_positive());
}
if !y.is_nan() {
area += y * step;
}