Browse Source

remove unused use statements

pbs
jake 4 years ago
parent
commit
f8d249380c
  1. 15
      src/ship/map/area.rs
  2. 6
      src/ship/map/enemy.rs
  3. 3
      src/ship/map/maps.rs
  4. 13
      src/ship/map/mod.rs
  5. 8
      src/ship/map/object.rs
  6. 10
      src/ship/map/variant.rs

15
src/ship/map/area.rs

@ -1,19 +1,6 @@
// TOOD: `pub(super) for most of these?`
use std::convert::Into;
use std::path::PathBuf;
use std::io::{Read};
use std::fs::File;
use byteorder::{LittleEndian, ReadBytesExt};
use rand::Rng;
use thiserror::Error;
use crate::ship::monster::MonsterType;
use crate::ship::room::{Episode, RoomMode};
// TODO: don't use *
use crate::ship::map::*;
use crate::ship::room::Episode;
#[derive(Debug, Copy, Clone, PartialEq)]
pub enum MapArea {

6
src/ship/map/enemy.rs

@ -1,15 +1,11 @@
// TOOD: `pub(super) for most of these?`
use std::convert::Into;
use std::path::PathBuf;
use std::io::{Read};
use std::fs::File;
use byteorder::{LittleEndian, ReadBytesExt};
use rand::Rng;
use thiserror::Error;
use crate::ship::monster::MonsterType;
use crate::ship::room::{Episode, RoomMode};
use crate::ship::room::Episode;
use crate::ship::map::*;

3
src/ship/map/maps.rs

@ -1,12 +1,9 @@
// TOOD: `pub(super) for most of these?`
use std::convert::Into;
use std::path::PathBuf;
use std::io::{Read};
use std::fs::File;
use byteorder::{LittleEndian, ReadBytesExt};
use rand::Rng;
use thiserror::Error;
use crate::ship::monster::MonsterType;

13
src/ship/map/mod.rs

@ -10,16 +10,3 @@ pub use enemy::*;
pub use object::*;
pub use variant::*;
pub use maps::*;
use std::convert::Into;
use std::path::PathBuf;
use std::io::{Read};
use std::fs::File;
use byteorder::{LittleEndian, ReadBytesExt};
use rand::Rng;
use thiserror::Error;
use crate::ship::monster::MonsterType;
use crate::ship::room::{Episode, RoomMode};

8
src/ship/map/object.rs

@ -1,16 +1,10 @@
// TOOD: `pub(super) for most of these?`
use std::convert::Into;
use std::path::PathBuf;
use std::io::{Read};
use std::fs::File;
use byteorder::{LittleEndian, ReadBytesExt};
use rand::Rng;
use thiserror::Error;
use crate::ship::monster::MonsterType;
use crate::ship::room::{Episode, RoomMode};
use crate::ship::room::Episode;
// TODO: don't use *
use crate::ship::map::*;

10
src/ship/map/variant.rs

@ -1,16 +1,6 @@
// TOOD: `pub(super) for most of these?`
use std::convert::Into;
use std::path::PathBuf;
use std::io::{Read};
use std::fs::File;
use byteorder::{LittleEndian, ReadBytesExt};
use rand::Rng;
use thiserror::Error;
use crate::ship::monster::MonsterType;
use crate::ship::room::{Episode, RoomMode};
// TODO: don't use *
use crate::ship::map::*;

Loading…
Cancel
Save