From 7d7f876622ce0a29166f1127a6837ab2a7cbdb20 Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 9 May 2025 17:21:07 -0400 Subject: [PATCH] Remove Normalize trait * Seems redundant --- src/qmap/parser.rs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) 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