remove unused fn

This commit is contained in:
Max Bradbury 2020-07-01 17:18:55 +01:00
parent c9d9f5e01d
commit 07fc016020
1 changed files with 0 additions and 14 deletions

View File

@ -34,20 +34,6 @@ impl RoomFormat {
#[derive(Debug, Eq, PartialEq, Copy, Clone)] #[derive(Debug, Eq, PartialEq, Copy, Clone)]
pub enum RoomType {Room, Set} pub enum RoomType {Room, Set}
#[derive(Debug)]
pub struct InvalidRoomType;
impl RoomType {
#[inline]
fn from(string: &str) -> Result<RoomType, InvalidRoomType> {
match string {
"ROOM" => Ok(RoomType::Room),
"SET" => Ok(RoomType::Set),
_ => Err(InvalidRoomType),
}
}
}
impl ToString for RoomType { impl ToString for RoomType {
#[inline] #[inline]
fn to_string(&self) -> String { fn to_string(&self) -> String {