remove extra members

This commit is contained in:
yggverse 2024-12-03 02:47:49 +02:00
parent 70dfac115f
commit 6d84ee5cfe
2 changed files with 2 additions and 7 deletions

View File

@ -215,7 +215,7 @@ impl Reader {
.wrap_mode(WrapMode::Word) .wrap_mode(WrapMode::Word)
.build(); .build();
if !tag.add(&a) { if !tag.text_tag_table.add(&a) {
panic!() // @TODO handle panic!() // @TODO handle
} }

View File

@ -14,7 +14,7 @@ use list::List;
use quote::Quote; use quote::Quote;
use title::Title; use title::Title;
use gtk::{TextTag, TextTagTable}; use gtk::TextTagTable;
pub struct Tag { pub struct Tag {
pub text_tag_table: TextTagTable, pub text_tag_table: TextTagTable,
@ -63,9 +63,4 @@ impl Tag {
title, title,
} }
} }
// Actions
pub fn add(&self, text_tag: &TextTag) -> bool {
self.text_tag_table.add(text_tag)
}
} }