diff options
Diffstat (limited to 'gifed/src/block')
-rw-r--r-- | gifed/src/block/mod.rs | 7 | ||||
-rw-r--r-- | gifed/src/block/packed.rs | 8 |
2 files changed, 0 insertions, 15 deletions
diff --git a/gifed/src/block/mod.rs b/gifed/src/block/mod.rs index 3a0f09f..36cc6fe 100644 --- a/gifed/src/block/mod.rs +++ b/gifed/src/block/mod.rs @@ -13,8 +13,6 @@ pub use palette::Palette; pub use screendescriptor::ScreenDescriptor; pub use version::Version; -use crate::writer::ImageBuilder; - use self::extension::Application; use self::extension::GraphicControl; @@ -28,11 +26,6 @@ pub enum Block { LoopingExtension(LoopCount), } -enum WriteBlock { - ImageBuilder(ImageBuilder), - Block(Block), -} - pub enum LoopCount { Forever, Number(u16), diff --git a/gifed/src/block/packed.rs b/gifed/src/block/packed.rs index 59da8c9..00d4373 100644 --- a/gifed/src/block/packed.rs +++ b/gifed/src/block/packed.rs @@ -4,10 +4,6 @@ pub struct GraphicPacked { } impl GraphicPacked { - pub(crate) fn new(packed: u8) -> Self { - Self { raw: packed } - } - pub fn reserved(&self) -> u8 { self.raw & 0b111_000_0_0 >> 5 } @@ -59,10 +55,6 @@ pub struct ImagePacked { } impl ImagePacked { - pub(crate) fn new(packed: u8) -> Self { - Self { raw: packed } - } - pub fn color_table(&self) -> bool { self.raw & 0b1_0_0_00_000 > 0 } |