web: remove a ton of legacy deprecated code

This commit is contained in:
2024-02-20 14:13:06 -08:00
parent 04592ddcc4
commit 02c0d36f90
8 changed files with 34 additions and 441 deletions

View File

@@ -4,7 +4,7 @@ use seed_hooks::{state_access::CloneState, topo, use_state};
use crate::{
api::urls,
state::{Context, Model, Msg, Tag},
view::{self, legacy, view_header, view_search_results},
view::{self, view_header, view_search_results},
};
#[topo::nested]
@@ -12,9 +12,7 @@ pub(super) fn view(model: &Model) -> Node<Msg> {
// Do two queries, one without `unread` so it loads fast, then a second with unread.
let content = match &model.context {
Context::None => div![h1!["Loading"]],
Context::Thread(thread_set) => legacy::thread(thread_set),
Context::ThreadResult(thread) => view::thread(thread),
Context::Search(search_results) => legacy::search_results(&model.query, search_results),
Context::SearchResult {
query,
results,