Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
eadf committed Feb 7, 2021
1 parent d61e261 commit bcd937b
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 45 deletions.
9 changes: 2 additions & 7 deletions example/piston_gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ where
[400, 200, 200, 200],
[529, 242, 367, 107],
];
let _segments_rust: [[i32; 4]; 355] = [
let _segments_rust: [[i32; 4]; 352] = [
[402, 20, 395, 20],
[408, 23, 402, 20],
[476, 27, 469, 26],
Expand Down Expand Up @@ -607,10 +607,8 @@ where
[623, 473, 605, 475],
[406, 476, 337, 476],
[771, 477, 773, 471],
[406, 476, 406, 476],
[26, 471, 28, 478],
[407, 478, 406, 476],
[407, 478, 407, 478],
[766, 481, 771, 477],
[730, 495, 766, 481],
[28, 478, 69, 495],
Expand All @@ -633,7 +631,6 @@ where
[407, 561, 407, 560],
[502, 562, 506, 562],
[405, 562, 407, 561],
[405, 562, 405, 562],
[621, 562, 624, 562],
[175, 562, 405, 562],
[506, 562, 621, 562],
Expand Down Expand Up @@ -823,7 +820,7 @@ where
let hp = Self::coord_i1_to_f1(&i.end);
graphics::line(
color,
2.0,
1.0,
[
Self::f1_to_f64(lp.x).into(),
Self::f1_to_f64(lp.y).into(),
Expand Down Expand Up @@ -914,8 +911,6 @@ where
let vertex1 = samples[i];
let vertex2 = samples[i + 1];

//vertex1.deconvolve(&self.shift_);
//vertex2.deconvolve(&self.shift_);
graphics::line(
color,
1.0,
Expand Down
5 changes: 2 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@
#![deny(non_upper_case_globals)]
#![deny(unused_qualifications)]
#![deny(unused_results)]
#![allow(unused_imports)]
#![deny(unused_imports)]

use core::fmt::Debug;
use num::bigint::BigInt;
use num::FromPrimitive;
//use num::FromPrimitive;
use num::ToPrimitive;
use num::{Float, NumCast, PrimInt, Zero};
use std::fmt::Display;
use std::hash::Hash;
use std::marker::PhantomData;
use std::ops::Neg;

//mod voronoi_builder;
mod voronoi_beachline;
pub mod voronoi_builder;
mod voronoi_circleevent;
Expand Down
1 change: 1 addition & 0 deletions src/voronoi_beachline/tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(unused_imports)]
use super::super::voronoi_beachline as VB;
use super::super::voronoi_builder::VoronoiBuilder;
use super::super::voronoi_diagram as VD;
Expand Down
12 changes: 6 additions & 6 deletions src/voronoi_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ use super::voronoi_predicate as VP;
use super::voronoi_siteevent as VSE;

use geo::{Coordinate, Line};
use num::{NumCast, PrimInt};
use std::cell::Cell;
use std::cmp::Ordering;
//use num::{NumCast, PrimInt};
//use std::cell::Cell;
//use std::cmp::Ordering;
use std::collections::BinaryHeap;
use std::fmt;
use std::hash::Hash;
//use std::fmt;
//use std::hash::Hash;
use std::ops::Neg;
use std::rc::Rc;
//use std::rc::Rc;

use super::{BigFloatType, BigIntType, InputType, OutputType};
use crate::voronoi_beachline::BeachLineNodeData;
Expand Down
1 change: 1 addition & 0 deletions src/voronoi_builder/tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(unused_imports)]
use super::super::voronoi_diagram::VoronoiDiagram;
use super::super::voronoi_error::BVError;
use super::VoronoiBuilder;
Expand Down
6 changes: 3 additions & 3 deletions src/voronoi_circleevent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
// Ported from C++ boost 1.74.0 to Rust in 2020 by Eadf (github.com/eadf)

use super::voronoi_beachline as VB;
use super::voronoi_diagram as VD;
use super::voronoi_predicate as VP;
//use super::voronoi_diagram as VD;
//use super::voronoi_predicate as VP;

use super::{BigFloatType, BigIntType, InputType, OutputType};
use super::OutputType;
use fnv::FnvHashSet;
use ordered_float::OrderedFloat;
use rb_tree::RBTree;
Expand Down
3 changes: 1 addition & 2 deletions src/voronoi_diagram.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ use super::voronoi_siteevent as VSE;
use super::TypeConverter as TCC;

pub use super::{BigFloatType, BigIntType, InputType, OutputType};
use num::{NumCast, PrimInt};
use num::NumCast;
use std::cell::Cell;
use std::cmp::Ordering;
use std::fmt;
use std::hash::Hash;
use std::marker::PhantomData;
use std::ops::Neg;
use std::rc::Rc;
Expand Down
6 changes: 1 addition & 5 deletions src/voronoi_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,8 @@
// Ported from C++ boost 1.74.0 to Rust in 2020 by Eadf (github.com/eadf)

use super::voronoi_beachline as VB;
use super::voronoi_circleevent as VC;
use super::voronoi_diagram as VD;
use super::voronoi_error::BVError;
use super::voronoi_predicate as VP;
use super::voronoi_siteevent as VSE;
use super::{BigFloatType, BigIntType, InputType, OutputType};
use super::InputType;
use geo::Coordinate;
use std::cmp::Ordering;
use std::ops::Neg;
Expand Down
5 changes: 0 additions & 5 deletions src/voronoi_predicate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,9 @@ use super::TypeConverter as TCC;
use super::TypeConverter as TC;
use super::{BigFloatType, BigIntType, InputType, OutputType};
use geo::Coordinate;
use num::FromPrimitive;
use num::ToPrimitive;
use num::{BigInt, Float, NumCast, PrimInt, Zero};
use ordered_float::OrderedFloat;
use std::cmp;
use std::convert::TryInto;
use std::fmt::{Debug, Display};
use std::hash::Hash;
use std::marker::PhantomData;
use std::ops::Neg;

Expand Down
2 changes: 1 addition & 1 deletion src/voronoi_predicate/tests.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![allow(unused_imports)]
use super::super::voronoi_beachline as VB;
use super::super::voronoi_builder::VoronoiBuilder;
use super::super::voronoi_diagram as VD;
use super::super::voronoi_diagram::VoronoiDiagram;
use super::super::voronoi_error::BVError;
Expand Down
7 changes: 2 additions & 5 deletions src/voronoi_robust_fpt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,11 @@
mod robustdif_tests;
mod robustfpt_tests;

use super::TypeCheckF as TCF;
use super::TypeCheckI as TCI;
use super::{BigFloatType, BigIntType, InputType, OutputType};
use super::OutputType;
use core::fmt::Debug;
use num::{BigInt, Float, FromPrimitive, Num, NumCast, ToPrimitive, Zero};
use num::{BigInt, Float, NumCast, ToPrimitive, Zero};
//use num_traits;
use ordered_float::OrderedFloat;
use std::convert::TryInto;
use std::fmt;
use std::marker::PhantomData;
use std::ops;
Expand Down
1 change: 1 addition & 0 deletions src/voronoi_robust_fpt/robustdif_tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(unused_imports)]
use super::RobustDif;
use super::RobustFpt;

Expand Down
1 change: 1 addition & 0 deletions src/voronoi_robust_fpt/robustfpt_tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(unused_imports)]
use super::RobustFpt;
use crate::voronoi_robust_fpt as VR;
use crate::TypeConverter as TCC;
Expand Down
8 changes: 1 addition & 7 deletions src/voronoi_siteevent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,17 @@

mod tests;

use super::voronoi_beachline as VB;
use super::voronoi_diagram as VD;
use super::voronoi_predicate as VP;
use ordered_float::OrderedFloat;
use std::cmp::Ordering;

use super::{BigFloatType, BigIntType, InputType, OutputType};
use geo::{Coordinate, Line};
use num::{NumCast, PrimInt};
use std::cell::Cell;
use geo::Coordinate;
use std::fmt;
use std::hash::{Hash, Hasher};
use std::marker::PhantomData;
use std::mem;
use std::ops::Neg;
use std::rc::Rc;
use std::rc::Weak;

pub type SiteEventIndexType = usize;

Expand Down
1 change: 1 addition & 0 deletions src/voronoi_siteevent/tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(unused_imports)]
use super::super::voronoi_diagram::VoronoiDiagram;
use super::super::voronoi_error::BVError;
use super::super::voronoi_siteevent as VSE;
Expand Down
1 change: 0 additions & 1 deletion src/voronoi_visual_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

// Ported from C++ boost 1.74.0 to Rust in 2020 by Eadf (github.com/eadf)

use super::voronoi_diagram as VD;
use super::{BigFloatType, BigIntType, InputType, OutputType};

use geo::{Coordinate, Line};
Expand Down

0 comments on commit bcd937b

Please sign in to comment.