From 3802ccfe9394195169862aeacdaa71e1a114895f Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Wed, 1 Jul 2020 14:23:39 +0100 Subject: [PATCH] remove some unused bits --- src/game.rs | 1 - src/lib.rs | 15 +-------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/game.rs b/src/game.rs index 23a02fe..8b981b8 100644 --- a/src/game.rs +++ b/src/game.rs @@ -849,7 +849,6 @@ mod test { use crate::game::{Version, Game}; use crate::text::{TextDirection, Font}; use crate::tile::Tile; - use crate::room::Room; #[test] fn test_game_from_string() { diff --git a/src/lib.rs b/src/lib.rs index 75697c4..4044d67 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -37,7 +37,6 @@ use std::fmt::Display; use text::{Font, TextDirection}; use tile::Tile; use variable::Variable; -use std::num::ParseIntError; #[derive(Clone, Debug, Eq, PartialEq)] pub struct Instance { @@ -77,11 +76,6 @@ impl AnimationFrames for Vec { } } -#[inline] -fn from_base36(str: &str) -> Result { - u64::from_str_radix(str, 36) -} - /// this doesn't work inside ToBase36 for some reason #[inline] fn to_base36(int: u64) -> String { @@ -201,14 +195,7 @@ impl Unquote for String { #[cfg(test)] mod test { - use crate::{from_base36, ToBase36, optional_data_line, mock, segments_from_string, Quote, Unquote, new_unique_id, try_id}; - - #[test] - fn test_from_base36() { - assert_eq!(from_base36("0").unwrap(), 0); - assert_eq!(from_base36("0z").unwrap(), 35); - assert_eq!(from_base36("11").unwrap(), 37); - } + use crate::{ToBase36, optional_data_line, mock, segments_from_string, Quote, Unquote, new_unique_id, try_id}; #[test] fn test_to_base36() {