remove some unused bits

This commit is contained in:
Max Bradbury 2020-07-01 14:23:39 +01:00
parent 71ce6e7334
commit 3802ccfe93
2 changed files with 1 additions and 15 deletions

View File

@ -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() {

View File

@ -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<Image> {
}
}
#[inline]
fn from_base36(str: &str) -> Result<u64, ParseIntError> {
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() {