From 07fc016020ebcf39a2e3b4210483a4758815350b Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Wed, 1 Jul 2020 17:18:55 +0100 Subject: [PATCH] remove unused fn --- src/game.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/game.rs b/src/game.rs index 8a3d651..aa842c7 100644 --- a/src/game.rs +++ b/src/game.rs @@ -34,20 +34,6 @@ impl RoomFormat { #[derive(Debug, Eq, PartialEq, Copy, Clone)] pub enum RoomType {Room, Set} -#[derive(Debug)] -pub struct InvalidRoomType; - -impl RoomType { - #[inline] - fn from(string: &str) -> Result { - match string { - "ROOM" => Ok(RoomType::Room), - "SET" => Ok(RoomType::Set), - _ => Err(InvalidRoomType), - } - } -} - impl ToString for RoomType { #[inline] fn to_string(&self) -> String {