diff options
author | Juan Manuel Tomás <jtomas1815@gmail.com> | 2021-01-17 18:08:45 -0300 |
---|---|---|
committer | Juan Manuel Tomás <jtomas1815@gmail.com> | 2021-01-17 18:08:45 -0300 |
commit | bc4d45fa639e32394081f726cbb1f093eb469b0a (patch) | |
tree | 7d808840fb8f68a42ed04d26c3d6a8bf9cd9e8cb /src/poly | |
parent | 727b1c2ee98d395429ec1e667279fc3f5fec3a5c (diff) | |
download | bezier-bc4d45fa639e32394081f726cbb1f093eb469b0a.tar.gz bezier-bc4d45fa639e32394081f726cbb1f093eb469b0a.zip |
Remove dead code
Diffstat (limited to 'src/poly')
-rw-r--r-- | src/poly/iter.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/poly/iter.rs b/src/poly/iter.rs index 059d7e3..90cc4b5 100644 --- a/src/poly/iter.rs +++ b/src/poly/iter.rs @@ -1,15 +1,14 @@ -use crate::number::Number; use std::cmp; use std::iter::{Take, Zip}; pub struct Iter { index: usize, - data: Vec<Number>, + data: Vec<f32>, degree: usize, } impl Iter { - pub fn new(data: Vec<Number>, degree: usize) -> Iter { + pub fn new(data: Vec<f32>, degree: usize) -> Iter { Iter { index: 0, data, @@ -26,9 +25,9 @@ impl Iter { } impl Iterator for Iter { - type Item = Number; + type Item = f32; - fn next(&mut self) -> Option<Number> { + fn next(&mut self) -> Option<f32> { self.index += 1; if self.index <= self.data.len() { Some(self.data[self.index - 1]) |