diff --git a/src/app/browser/window/tab/item/page/content/text/markdown/tags.rs b/src/app/browser/window/tab/item/page/content/text/markdown/tags.rs index 494db800..d911b98c 100644 --- a/src/app/browser/window/tab/item/page/content/text/markdown/tags.rs +++ b/src/app/browser/window/tab/item/page/content/text/markdown/tags.rs @@ -1,6 +1,5 @@ mod header; mod list; -mod plain; mod quote; mod reference; mod title; @@ -15,9 +14,7 @@ use gtk::{ }; use header::Header; use list::List; -use plain::Plain; use quote::Quote; -use reference::Reference; use title::Title; pub struct Tags { @@ -25,7 +22,6 @@ pub struct Tags { // Tags pub header: Header, pub list: TextTag, - pub plain: TextTag, pub quote: Quote, pub title: TextTag, } @@ -42,20 +38,17 @@ impl Tags { // Init tag table let text_tag_table = TextTagTable::new(); - // Init components + // Init shared tags members let list = TextTag::list(); - let plain = TextTag::plain(); let title = TextTag::title(); text_tag_table.add(&title); text_tag_table.add(&list); - text_tag_table.add(&plain); Self { text_tag_table, // Tags header: Header::new(), list, - plain, quote: Quote::new(), title, } diff --git a/src/app/browser/window/tab/item/page/content/text/markdown/tags/plain.rs b/src/app/browser/window/tab/item/page/content/text/markdown/tags/plain.rs deleted file mode 100644 index dfc7374c..00000000 --- a/src/app/browser/window/tab/item/page/content/text/markdown/tags/plain.rs +++ /dev/null @@ -1,11 +0,0 @@ -use gtk::{TextTag, WrapMode}; - -pub trait Plain { - fn plain() -> Self; -} - -impl Plain for TextTag { - fn plain() -> Self { - TextTag::builder().wrap_mode(WrapMode::Word).build() - } -}