Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
johnshew committed Jul 17, 2021
1 parent 24b3458 commit b029177
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 168 deletions.
106 changes: 0 additions & 106 deletions src/callbacks.rs

This file was deleted.

9 changes: 2 additions & 7 deletions src/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ extern crate native_windows_gui as nwg;

use nwd::NwgPartial;

use super::observables::*;
use super::stats;
use super::utils;
use crate::Sample;
Expand Down Expand Up @@ -110,11 +109,7 @@ impl GraphUi {
300
};
let mut min = if let Ok(v) = self.min_select.text().parse::<u16>() {
if v < 0 {
0
} else {
v
}
v
} else {
0
};
Expand Down Expand Up @@ -248,7 +243,7 @@ impl GraphUi {
}
}

fn pin<T: PartialOrd>(value: T, min: T, max: T) -> T {
fn _clip<T: PartialOrd>(value: T, min: T, max: T) -> T {
let mut result = value;
if result < min {
result = min;
Expand Down
1 change: 0 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ use nwg::stretch::{
use nwg::NativeUi;

mod graph;
mod observables;
mod stats;
mod utils;

Expand Down
54 changes: 0 additions & 54 deletions src/observables.rs

This file was deleted.

0 comments on commit b029177

Please sign in to comment.