From d6756ef44df69fa913ca2132e47860558baeca58 Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 26 Dec 2024 22:17:43 +0100 Subject: [PATCH] chore(web): remove unused stuff --- web/src/actors/follow.rs | 1 - web/src/actors/header.rs | 2 +- web/src/getters.rs | 11 ----------- web/src/lib.rs | 2 -- 4 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 web/src/getters.rs diff --git a/web/src/actors/follow.rs b/web/src/actors/follow.rs index 6be754f..2438ade 100644 --- a/web/src/actors/follow.rs +++ b/web/src/actors/follow.rs @@ -9,7 +9,6 @@ use apb::Collection; #[component] pub fn FollowList(outgoing: bool) -> impl IntoView { let follow___ = if outgoing { "following" } else { "followers" }; - let symbol = if outgoing { "👥" } else { "📢" }; let params = use_params::(); let auth = use_context::().expect("missing auth context"); let resource = create_local_resource( diff --git a/web/src/actors/header.rs b/web/src/actors/header.rs index c2b2bbb..5188bf0 100644 --- a/web/src/actors/header.rs +++ b/web/src/actors/header.rs @@ -1,6 +1,6 @@ use leptos::*; use leptos_router::*; -use crate::{app::FeedRoute, getters::Getter, prelude::*, FALLBACK_IMAGE_URL}; +use crate::{app::FeedRoute, prelude::*, FALLBACK_IMAGE_URL}; use apb::{ActivityMut, Actor, Base, Object, ObjectMut, Shortcuts}; diff --git a/web/src/getters.rs b/web/src/getters.rs deleted file mode 100644 index 5b341f8..0000000 --- a/web/src/getters.rs +++ /dev/null @@ -1,11 +0,0 @@ - -pub trait Getter { - /// .ok().unwrap_or_default() - fn want(self) -> T; -} - -impl Getter for apb::Field { - fn want(self) -> T { - self.ok().unwrap_or_default() - } -} diff --git a/web/src/lib.rs b/web/src/lib.rs index 7696835..4402439 100644 --- a/web/src/lib.rs +++ b/web/src/lib.rs @@ -9,8 +9,6 @@ mod activities; mod objects; mod timeline; -mod getters; - pub use app::App; pub use config::Config; pub use auth::Auth;