From 8b882bc5dcdb997d2c2ce72bdec646e63b0aa213 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Sat, 8 Feb 2020 09:38:42 -0500 Subject: [PATCH] Remove unused dimension struct --- src/value.rs | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/value.rs b/src/value.rs index 61f269b..05e08ea 100644 --- a/src/value.rs +++ b/src/value.rs @@ -15,27 +15,6 @@ use crate::units::Unit; use crate::utils::{devour_whitespace_or_comment, parse_interpolation}; use crate::{Token, TokenKind}; -#[derive(Debug, Clone, Copy, PartialEq, Eq)] -pub(crate) struct Dimension { - val: u64, -} - -impl Add for Dimension { - type Output = Self; - - fn add(self, other: Self) -> Self { - Dimension { - val: self.val + other.val, - } - } -} - -impl Display for Dimension { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!(f, "{}", self.val) - } -} - #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub(crate) enum ListSeparator { Space,