Remove dead SharedContextState type and imports

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
Kent Overstreet 2026-04-07 03:05:21 -04:00
parent 04e260c081
commit 77b68ecc50

View file

@ -4,8 +4,6 @@
// Journal entries are loaded from the memory graph store, not from // Journal entries are loaded from the memory graph store, not from
// a flat file — the parse functions are gone. // a flat file — the parse functions are gone.
use std::sync::{Arc, RwLock};
use crate::agent::api::types::*; use crate::agent::api::types::*;
use chrono::{DateTime, Utc}; use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
@ -21,14 +19,6 @@ pub struct ContextSection {
pub children: Vec<ContextSection>, pub children: Vec<ContextSection>,
} }
/// Shared, live context state — agent writes, TUI reads for the debug screen.
pub type SharedContextState = Arc<RwLock<Vec<ContextSection>>>;
/// Create a new shared context state.
pub fn shared_context_state() -> SharedContextState {
Arc::new(RwLock::new(Vec::new()))
}
/// A single journal entry with its timestamp and content. /// A single journal entry with its timestamp and content.
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub struct JournalEntry { pub struct JournalEntry {