diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-07-07 00:31:45 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-07-07 00:31:45 +0200 |
| commit | afe9dab09237f614ead06ef2c879a671e341616b (patch) | |
| tree | 9dca59d3b663767900a28bfe434cd24d5bf3d4f1 /src/gui | |
| parent | 179920fa402b81a3ae8cc3c4b415172f71eb8d11 (diff) | |
remove dead code
Diffstat (limited to 'src/gui')
| -rw-r--r-- | src/gui/easing.rs | 31 | ||||
| -rw-r--r-- | src/gui/mod.rs | 3 |
2 files changed, 1 insertions, 33 deletions
diff --git a/src/gui/easing.rs b/src/gui/easing.rs index 665b332..a4ef652 100644 --- a/src/gui/easing.rs +++ b/src/gui/easing.rs @@ -4,43 +4,12 @@ use lyon_algorithms::measure::PathMeasurements; use lyon_algorithms::path::{builder::NoAttributes, path::BuilderImpl, Path}; use once_cell::sync::Lazy; -pub static EMPHASIZED: Lazy<Easing> = Lazy::new(|| { - Easing::builder() - .cubic_bezier_to([0.05, 0.0], [0.133333, 0.06], [0.166666, 0.4]) - .cubic_bezier_to([0.208333, 0.82], [0.25, 1.0], [1.0, 1.0]) - .build() -}); - -pub static EMPHASIZED_DECELERATE: Lazy<Easing> = Lazy::new(|| { - Easing::builder() - .cubic_bezier_to([0.05, 0.7], [0.1, 1.0], [1.0, 1.0]) - .build() -}); - -pub static EMPHASIZED_ACCELERATE: Lazy<Easing> = Lazy::new(|| { - Easing::builder() - .cubic_bezier_to([0.3, 0.0], [0.8, 0.15], [1.0, 1.0]) - .build() -}); - pub static STANDARD: Lazy<Easing> = Lazy::new(|| { Easing::builder() .cubic_bezier_to([0.2, 0.0], [0.0, 1.0], [1.0, 1.0]) .build() }); -pub static STANDARD_DECELERATE: Lazy<Easing> = Lazy::new(|| { - Easing::builder() - .cubic_bezier_to([0.0, 0.0], [0.0, 1.0], [1.0, 1.0]) - .build() -}); - -pub static STANDARD_ACCELERATE: Lazy<Easing> = Lazy::new(|| { - Easing::builder() - .cubic_bezier_to([0.3, 0.0], [1.0, 1.0], [1.0, 1.0]) - .build() -}); - pub struct Easing { path: Path, measurements: PathMeasurements, diff --git a/src/gui/mod.rs b/src/gui/mod.rs index 0c1b9cc..a32ceff 100644 --- a/src/gui/mod.rs +++ b/src/gui/mod.rs @@ -103,7 +103,6 @@ async fn generate() -> Index { Index::generate(input, file, |counter, nof| { let p = ((counter * 100) / nof) as u8; *GENERATE_PROGRESS.lock().unwrap() = p; - eprint!("\r\x1b[2K{} of {} files indexed ({}%)", counter, nof, p); std::io::stdout().flush().ok(); }) } @@ -198,7 +197,7 @@ impl Application for App { ) } Message::SearchFinished(results) => { - state.results = results.clone(); + state.results = results; Command::none() } _ => { |