Parcourir la source

chore: remove comments module

Jonathan Kelley il y a 2 ans
Parent
commit
d3c3c41d9e
3 fichiers modifiés avec 0 ajouts et 27 suppressions
  1. 0 24
      packages/rsx/src/comments.rs
  2. 0 1
      packages/rsx/src/lib.rs
  3. 0 2
      packages/rsx/src/node.rs

+ 0 - 24
packages/rsx/src/comments.rs

@@ -1,24 +0,0 @@
-use std::hash::Hash;
-
-use proc_macro2::Span;
-
-// A form of whitespace
-#[derive(Debug, Clone)]
-pub struct UserComment {
-    pub span: Span,
-    pub comment: String,
-}
-
-impl PartialEq for UserComment {
-    fn eq(&self, other: &Self) -> bool {
-        self.comment == other.comment
-    }
-}
-
-impl Eq for UserComment {}
-
-impl Hash for UserComment {
-    fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
-        self.comment.hash(state);
-    }
-}

+ 0 - 1
packages/rsx/src/lib.rs

@@ -13,7 +13,6 @@
 
 #[macro_use]
 mod errors;
-mod comments;
 mod component;
 mod element;
 pub mod hot_reload;

+ 0 - 2
packages/rsx/src/node.rs

@@ -1,5 +1,3 @@
-use crate::comments::UserComment;
-
 use super::*;
 
 use proc_macro2::{Span, TokenStream as TokenStream2};