Skip to content

Commit 56a81e0

Browse files
committed
Remove unused function
1 parent 3b6bd08 commit 56a81e0

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/axis.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,6 @@ impl Iterator for TickSteps {
145145
}
146146
}
147147

148-
/**
149-
This function exists to fix subtle floating point numbers like 0.30000000000000004
150-
In the longer-term is should be moved to something in the presentation layer
151-
*/
152-
fn round(x: f64) -> f64 {
153-
(x * 1000000000000000.0).round() / 1000000000000000.0
154-
}
155-
156148
fn generate_ticks(min: f64, max: f64, step_size: f64) -> Vec<f64> {
157149
// "fix" just makes sure there are no floating-point errors
158150
fn fix(x: f64) -> f64 {

0 commit comments

Comments
 (0)