chore(web): remove unused stuff

This commit is contained in:
əlemi 2024-12-26 22:17:43 +01:00
parent a09795246b
commit d6756ef44d
Signed by: alemi
GPG key ID: A4895B84D311642C
4 changed files with 1 additions and 15 deletions

View file

@ -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::<IdParam>();
let auth = use_context::<Auth>().expect("missing auth context");
let resource = create_local_resource(

View file

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

View file

@ -1,11 +0,0 @@
pub trait Getter<T: Default> {
/// .ok().unwrap_or_default()
fn want(self) -> T;
}
impl<T: Default> Getter<T> for apb::Field<T> {
fn want(self) -> T {
self.ok().unwrap_or_default()
}
}

View file

@ -9,8 +9,6 @@ mod activities;
mod objects;
mod timeline;
mod getters;
pub use app::App;
pub use config::Config;
pub use auth::Auth;