diff --git a/src/qmap/parser.rs b/src/qmap/parser.rs index 1cccfa6..03efb6e 100644 --- a/src/qmap/parser.rs +++ b/src/qmap/parser.rs @@ -1,9 +1,6 @@ extern crate std; -use std::{ - cell::Cell, io::Read, iter::Peekable, num::NonZeroU8, str::FromStr, - vec::Vec, -}; +use std::{io::Read, iter::Peekable, num::NonZeroU8, str::FromStr, vec::Vec}; use crate::{common, qmap, TextParseError, TextParseResult}; use common::CellOptionExt; @@ -25,16 +22,6 @@ where } } -trait Normalize { - fn normalize(&self) -> TextParseResult<&Option>; -} - -impl Normalize for Result, Cell>> { - fn normalize(&self) -> Result<&Option, TextParseError> { - self.as_ref().map_err(|e| e.steal()) - } -} - const MIN_BRUSH_SURFACES: usize = 4; /// Parses a Quake source map