From ed51ba2b9c859e9088f21874dd5f5beac9cb1ff1 Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Mon, 17 Apr 2023 22:07:25 +0200 Subject: [PATCH] more --- src/tiles.rs | 58 ---------------------------------------------------- tiles.rs | 58 ---------------------------------------------------- 2 files changed, 116 deletions(-) diff --git a/src/tiles.rs b/src/tiles.rs index 911ebef..61f8d49 100644 --- a/src/tiles.rs +++ b/src/tiles.rs @@ -127,12 +127,6 @@ where } } -const DEFAULT_TILE_BB: TileBb = TileBb { - x: 0, - y: 0, - w: TILE_SIZE, - h: TILE_SIZE, -}; #[derive(Serialize, Deserialize, Debug, Inspect, Clone, Copy)] pub struct TileBb { @@ -151,55 +145,3 @@ pub struct TileDb { mid: Vec>, fg: Vec>, } - -impl Default for TileDb { - fn default() -> Self { - loop {} - } -} - -impl Index for TileDb { - type Output = TileDef; - - fn index(&self, index: BgTileId) -> &Self::Output { - loop {} - } -} - -impl Index for TileDb { - type Output = TileDef; - - fn index(&self, index: MidTileId) -> &Self::Output { - loop {} - } -} - -impl Index for TileDb { - type Output = TileDef; - - fn index(&self, index: FgTileId) -> &Self::Output { - loop {} - } -} - -const PATH: &str = "tiles.dat"; - -impl TileDb { - pub fn load_or_default() -> Self { - loop {} - } - pub fn try_save(&self) { - loop {} - } - - pub(crate) fn update_rects(&mut self, rects: &RectMap) { - loop {} - } -} - -fn update_rect_db(db: &mut Vec>, rects: &RectMap) -where - Layer::SpecificDef: Debug + Inspect, -{ - loop {} -} diff --git a/tiles.rs b/tiles.rs index 911ebef..61f8d49 100644 --- a/tiles.rs +++ b/tiles.rs @@ -127,12 +127,6 @@ where } } -const DEFAULT_TILE_BB: TileBb = TileBb { - x: 0, - y: 0, - w: TILE_SIZE, - h: TILE_SIZE, -}; #[derive(Serialize, Deserialize, Debug, Inspect, Clone, Copy)] pub struct TileBb { @@ -151,55 +145,3 @@ pub struct TileDb { mid: Vec>, fg: Vec>, } - -impl Default for TileDb { - fn default() -> Self { - loop {} - } -} - -impl Index for TileDb { - type Output = TileDef; - - fn index(&self, index: BgTileId) -> &Self::Output { - loop {} - } -} - -impl Index for TileDb { - type Output = TileDef; - - fn index(&self, index: MidTileId) -> &Self::Output { - loop {} - } -} - -impl Index for TileDb { - type Output = TileDef; - - fn index(&self, index: FgTileId) -> &Self::Output { - loop {} - } -} - -const PATH: &str = "tiles.dat"; - -impl TileDb { - pub fn load_or_default() -> Self { - loop {} - } - pub fn try_save(&self) { - loop {} - } - - pub(crate) fn update_rects(&mut self, rects: &RectMap) { - loop {} - } -} - -fn update_rect_db(db: &mut Vec>, rects: &RectMap) -where - Layer::SpecificDef: Debug + Inspect, -{ - loop {} -}