Skip to content

Commit

Permalink
Remove obsolete leftover TemplateState::icon method
Browse files Browse the repository at this point in the history
  • Loading branch information
BBaoVanC committed Sep 22, 2024
1 parent 1a6e97f commit 1da2008
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions bobashare-web/src/views/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ impl From<Arc<AppState>> for TemplateState {
Self::from(&*state)
}
}
impl TemplateState {
pub fn icon<S: AsRef<str>>(&self, name: S) -> Url {
self.base_url
.join(&format!("static/svg/fa/{}.svg", name.as_ref()))
.unwrap()
}
}

// which page is current navigated to, for navbar formatting
#[derive(Debug, Clone)]
Expand Down

0 comments on commit 1da2008

Please sign in to comment.