summaryrefslogtreecommitdiffstats
path: root/gui/src/timeline_post.rs
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/timeline_post.rs')
-rw-r--r--gui/src/timeline_post.rs29
1 files changed, 0 insertions, 29 deletions
diff --git a/gui/src/timeline_post.rs b/gui/src/timeline_post.rs
deleted file mode 100644
index 8b53898..0000000
--- a/gui/src/timeline_post.rs
+++ /dev/null
@@ -1,29 +0,0 @@
-#[derive(Debug)]
-pub struct TimelinePost {
- mime: mime::Mime,
- content: PostContent,
-}
-
-#[derive(Debug)]
-pub enum PostContent {
- Text(String)
-}
-
-impl TimelinePost {
- pub fn update(&mut self) {
- ()
- }
-
- pub fn view(&self) -> iced::Row<crate::app::Message> {
- iced::Row::new()
- .push({
- iced::Text::new(self.mime.as_ref().to_string())
- })
- .push({
- match self.content {
- PostContent::Text(ref txt) => iced::Text::new(txt.clone()),
- }
- })
- .into()
- }
-}