From 2d7484a631538a879396da46b1fa8c712342b5ed Mon Sep 17 00:00:00 2001 From: Shadow Cat Date: Sat, 20 Sep 2025 02:00:08 -0400 Subject: [PATCH] prev isn't used atm --- src/layout/layer.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/layout/layer.rs b/src/layout/layer.rs index baa16e8..3a8a628 100644 --- a/src/layout/layer.rs +++ b/src/layout/layer.rs @@ -7,7 +7,6 @@ use crate::{ }; struct LayerNode { - prev: Option, next: Next, child: Option, data: Layer, @@ -57,7 +56,6 @@ impl Layers { } let i_next = self.push(LayerNode::new(Layer::default(), self.vec[i].next)); self.vec[i].next = Next::Same(i_next); - self.vec[i_next].prev = Some(i); i_next } @@ -67,7 +65,6 @@ impl Layers { } let i_next = self.push(LayerNode::new(Layer::default(), Next::Parent(i))); self.vec[i].child = Some(i_next); - self.vec[i_next].prev = Some(i); i_next } @@ -116,7 +113,6 @@ impl IndexMut for Layers { impl LayerNode { pub fn new(data: Layer, next: Next) -> Self { Self { - prev: None, next, child: None, data,