diff --git a/agb/src/display/object/font.rs b/agb/src/display/object/font.rs index 7bfd5c96..0a52804f 100644 --- a/agb/src/display/object/font.rs +++ b/agb/src/display/object/font.rs @@ -10,7 +10,7 @@ use self::{ renderer::{Configuration, WordRender}, }; -use super::{DynamicSprite, OamIterator, ObjectUnmanaged, PaletteVram, Size, SpriteVram}; +use super::{OamIterator, ObjectUnmanaged, PaletteVram, Size, SpriteVram}; mod preprocess; mod renderer; @@ -48,12 +48,6 @@ pub struct BufferedRender<'font> { font: &'font Font, } -#[derive(Debug)] -struct Word { - index: usize, - length: usize, -} - #[derive(Debug, Default)] struct Letters { letters: Vec, @@ -267,8 +261,6 @@ impl LayoutCache { self.objects.clear(); self.state = LayoutCacheState { head_position: settings.area.position, - processed_depth: 0, - group_depth: 0, word_depth: 0, rendered_groups: 0, line_depth: 0, @@ -288,8 +280,6 @@ struct LayoutSettings { #[derive(Default)] struct LayoutCacheState { head_position: Vector2D, - processed_depth: usize, - group_depth: usize, word_depth: usize, rendered_groups: usize, line_depth: usize,