Skip to content

Commit

Permalink
Remove unnecessary use statements
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisaphone committed Dec 26, 2018
1 parent 1c3dd76 commit 988167e
Show file tree
Hide file tree
Showing 36 changed files with 0 additions and 42 deletions.
1 change: 0 additions & 1 deletion brain/src/behavior/defense/panic_defense.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use crate::{
use common::prelude::*;
use nalgebra::Point2;
use nameof::name_of_type;
use rlbot;

pub struct PanicDefense {
use_boost: bool,
Expand Down
1 change: 0 additions & 1 deletion brain/src/behavior/higher_order/null.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate::strategy::{Action, Behavior, Context};
use nameof::name_of_type;
use rlbot;

#[allow(dead_code)]
pub struct NullBehavior;
Expand Down
1 change: 0 additions & 1 deletion brain/src/behavior/movement/blitz_to_location.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use crate::{
use common::{prelude::*, rl};
use nalgebra::Point2;
use nameof::name_of_type;
use rlbot;
use std::f32::consts::PI;

pub struct BlitzToLocation {
Expand Down
1 change: 0 additions & 1 deletion brain/src/behavior/movement/dodge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use crate::{
};
use nalgebra::UnitComplex;
use nameof::name_of_type;
use rlbot;

pub struct Dodge {
angle: UnitComplex<f32>,
Expand Down
1 change: 0 additions & 1 deletion brain/src/behavior/movement/drive_loc_time_decelerate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use common::prelude::*;
use eeg::{color, Drawable, EEG};
use mechanics::simple_steer_towards;
use nalgebra::Vector2;
use rlbot;
use simulate::Car1D;
use utils::my_car;

Expand Down
1 change: 0 additions & 1 deletion brain/src/behavior/movement/drive_towards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use crate::{
use common::{prelude::*, rl};
use nalgebra::Point2;
use nameof::{name_of, name_of_type};
use rlbot;
use simulate::linear_interpolate;
use std::f32::consts::PI;

Expand Down
1 change: 0 additions & 1 deletion brain/src/behavior/movement/get_to_flat_ground.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use crate::{
use common::prelude::*;
use nalgebra::{Unit, Vector2, Vector3};
use nameof::name_of_type;
use rlbot;
use simulate::linear_interpolate;
use std::f32::consts::PI;

Expand Down
1 change: 0 additions & 1 deletion brain/src/behavior/movement/ground_accel_to_loc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use crate::{
use common::{prelude::*, rl};
use nalgebra::Point2;
use nameof::name_of_type;
use rlbot;
use simulate::Car1D;
use std::f32::consts::PI;

Expand Down
1 change: 0 additions & 1 deletion brain/src/behavior/movement/jump_and_turn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use crate::{
use common::physics;
use nalgebra::UnitQuaternion;
use nameof::name_of_type;
use rlbot;

pub struct JumpAndTurn {
jump_duration: f32,
Expand Down
1 change: 0 additions & 1 deletion brain/src/behavior/movement/quick_jump_and_dodge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use crate::{
strategy::{Action, Behavior, Context, Priority},
};
use nameof::name_of_type;
use rlbot;

pub struct QuickJumpAndDodge {
start_time: Option<f32>,
Expand Down
2 changes: 0 additions & 2 deletions brain/src/behavior/movement/simple_steer_towards.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::utils::geometry::ExtendF32;
use common::prelude::*;
use nalgebra::Point2;
use rlbot;

pub fn simple_steer_towards(car: &rlbot::ffi::Physics, target_loc: Point2<f32>) -> f32 {
simple_yaw_diff(car, target_loc).max(-1.0).min(1.0) * 2.0
Expand All @@ -22,7 +21,6 @@ mod integration_tests {
use common::prelude::*;
use nalgebra::{Point3, Rotation3};
use nameof::name_of_type;
use rlbot;

struct SimpleSteerTowardsBall;

Expand Down
1 change: 0 additions & 1 deletion brain/src/behavior/movement/yielder.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::strategy::{Action, Behavior, Context};
use derive_new::new;
use nameof::name_of_type;
use rlbot;

#[derive(new)]
pub struct Yielder {
Expand Down
1 change: 0 additions & 1 deletion brain/src/behavior/offense/carry_from_bounce.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use eeg::{color, Drawable, EEG};
use mechanics::{simple_steer_towards, DriveLocTimeDecelerate};
use nalgebra::Vector2;
use predict::estimate_intercept_car_ball_2;
use rlbot;
use utils::{enemy_goal_center, one_v_one};

pub struct CarryFromBounce;
Expand Down
1 change: 0 additions & 1 deletion brain/src/behavior/offense/corner_offense.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use behavior::{Action, Behavior};
use eeg::EEG;
use rlbot;

pub struct CornerOffense;

Expand Down
1 change: 0 additions & 1 deletion brain/src/behavior/strike/grounded_hit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ use crate::{
use common::{physics, prelude::*, rl};
use derive_new::new;
use nalgebra::{Point2, Point3, UnitQuaternion};
use rlbot;
use simulate::{
car_single_jump::{time_to_z, JUMP_MAX_Z},
linear_interpolate, Car1D, CarSimulateError,
Expand Down
1 change: 0 additions & 1 deletion brain/src/brain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use crate::{
};
use common::ExtendDuration;
use nalgebra::clamp;
use rlbot;
use std::time::Instant;

pub struct Brain {
Expand Down
2 changes: 0 additions & 2 deletions brain/src/eeg/eeg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

use crate::strategy::Team;
use common::{prelude::*, rl, PrettyPrint};
use crossbeam_channel;
use graphics::{types::Color, Transformed};
use nalgebra::{Point2, Point3, Rotation3};
use piston_window::{
circle_arc, clear, ellipse, line, rectangle, text, AdvancedWindow, Ellipse, Glyphs, OpenGL,
PistonWindow, Position, Rectangle, TextureSettings, WindowSettings,
};
use rlbot;
use std::{collections::HashSet, mem, path::PathBuf, thread};

pub struct EEG {
Expand Down
1 change: 0 additions & 1 deletion brain/src/eeg/recipes.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! This is just a dumping ground of marginally-useful visualization stuff.
use common::prelude::*;
use rlbot;

pub fn draw_ball_prediction(rlbot: &rlbot::RLBot, packet: &rlbot::ffi::LiveDataPacket) {
use chip::Ball;
Expand Down
2 changes: 0 additions & 2 deletions brain/src/integration_tests/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ use collect::{
RecordingTick,
};
use common::{ext::ExtendRLBot, prelude::*};
use crossbeam_channel;
use lazy_static::lazy_static;
use nalgebra::{Point3, Rotation3, UnitQuaternion, Vector3};
use ordered_float::NotNan;
use rlbot;
use std::{
collections::HashSet,
f32::consts::PI,
Expand Down
1 change: 0 additions & 1 deletion brain/src/plan/drive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use crate::{
};
use common::{prelude::*, rl};
use nalgebra::Point2;
use rlbot;
use simulate::Car1D;
use std::f32::consts::PI;

Expand Down
1 change: 0 additions & 1 deletion brain/src/routing/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use crate::{
};
use common::{physics, prelude::*, rl, PrettyPrint};
use nalgebra::{Point2, Point3, Unit, UnitComplex, UnitQuaternion, Vector2, Vector3};
use rlbot;
use std::{fmt, iter};

#[derive(Clone)]
Expand Down
1 change: 0 additions & 1 deletion brain/src/routing/plan/ground_turn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use crate::{
},
utils::geometry::circle_point_tangents,
};
use chip;
use common::{prelude::*, rl};
use derive_new::new;
use nalgebra::Point2;
Expand Down
1 change: 0 additions & 1 deletion brain/src/routing/segments/powerslide_turn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use crate::{
};
use nalgebra::Vector2;
use nameof::name_of_type;
use rlbot;
use simulate::CarPowerslideTurnBlueprint;

#[derive(Clone)]
Expand Down
1 change: 0 additions & 1 deletion brain/src/routing/segments/simple_arc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use crate::{
use common::{physics::CAR_LOCAL_FORWARD_AXIS_2D, prelude::*};
use nalgebra::{Point2, Unit, UnitComplex, Vector2};
use nameof::name_of_type;
use rlbot;
use std::f32::consts::PI;

#[derive(Clone)]
Expand Down
1 change: 0 additions & 1 deletion brain/src/strategy/behavior.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::strategy::Context;
use rlbot;

pub trait Behavior: Send {
fn name(&self) -> &str;
Expand Down
1 change: 0 additions & 1 deletion brain/src/strategy/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use crate::{
plan::ball::BallPredictor,
strategy::{game::Game, scenario::Scenario, Team},
};
use rlbot;

pub struct Context<'a> {
pub packet: &'a rlbot::ffi::LiveDataPacket,
Expand Down
1 change: 0 additions & 1 deletion brain/src/strategy/game.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use common::{prelude::*, rl};
use lazy_static::lazy_static;
use nalgebra::{Point2, Point3, Unit, Vector2, Vector3};
use rlbot;
use std::ops::RangeTo;

pub struct Game<'a> {
Expand Down
1 change: 0 additions & 1 deletion brain/src/strategy/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use crate::{
strategy::{strategy::Strategy, Action, Behavior, Context},
};
use nameof::name_of_type;
use rlbot;

pub struct Runner {
strategy: Box<Strategy>,
Expand Down
1 change: 0 additions & 1 deletion brain/src/strategy/scenario.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use crate::{
use common::prelude::*;
use lazycell::LazyCell;
use ordered_float::NotNan;
use rlbot;
use simulate::{linear_interpolate, Car1D};
use std::f32::{self, consts::PI};

Expand Down
3 changes: 0 additions & 3 deletions collect/src/collector.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
use csv;
use flatbuffers;
use rlbot;
use std::{fs::File, iter::once};

pub struct Collector {
Expand Down
2 changes: 0 additions & 2 deletions collect/src/data.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use csv;
use nalgebra::{Point3, Quaternion, UnitQuaternion, Vector3};
use rlbot;
use std::io::Read;

pub struct RecordingTick {
Expand Down
1 change: 0 additions & 1 deletion collect/src/rlbot_ext.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use common::{prelude::*, rotation};
use nalgebra::UnitQuaternion;
use rlbot;
use std::error::Error;

const PHYSICS_TPS: f32 = 120.0;
Expand Down
1 change: 0 additions & 1 deletion collect/src/scenarios.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

use common::{prelude::*, rl};
use nalgebra::{Point3, Vector3};
use rlbot;
use std::{error::Error, f32::consts::PI, fmt};

pub trait Scenario {
Expand Down
1 change: 0 additions & 1 deletion common/src/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use nalgebra::{
Point2, Point3, Quaternion, Real, Rotation3, Unit, UnitComplex, UnitQuaternion, Vector2,
Vector3,
};
use rlbot;
use std::{error::Error, mem};

pub trait ExtendVector2<N: Real> {
Expand Down
1 change: 0 additions & 1 deletion common/src/rotation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ pub fn convert_quat_to_pyr(quat: &UnitQuaternion<f32>) -> (f32, f32, f32) {
#[cfg(test)]
mod tests {
use crate::{prelude::*, rotation};
use chip;
use lazy_static::lazy_static;
use nalgebra::{Rotation3, UnitQuaternion, Vector3};

Expand Down
1 change: 0 additions & 1 deletion simulate/src/car.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::car1d::Car1D;
use common::{physics, prelude::*};
use nalgebra::{Point3, Unit, UnitQuaternion, Vector2, Vector3};
use rlbot;

pub struct Car {
loc: Point3<f32>,
Expand Down

0 comments on commit 988167e

Please sign in to comment.