Procházet zdrojové kódy

chore: remove comments module

Jonathan Kelley před 2 roky
rodič
revize
d3c3c41d9e

+ 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};