Cleanup unused fields

This commit is contained in:
Ben Brandt 2025-07-24 11:41:20 +02:00
parent c03585359a
commit 45452a81d4
No known key found for this signature in database
GPG key ID: D4618C5D3B500571
4 changed files with 5 additions and 27 deletions

View file

@ -529,7 +529,6 @@ pub struct AcpThread {
shared_buffers: HashMap<Entity<Buffer>, BufferSnapshot>,
send_task: Option<Task<()>>,
connection: Rc<dyn AgentConnection>,
child_status: Option<Task<Result<()>>>,
session_id: acp::SessionId,
}
@ -575,8 +574,6 @@ impl AcpThread {
connection: Rc<dyn AgentConnection>,
// todo! remove me
title: SharedString,
// todo! remove this?
child_status: Option<Task<Result<()>>>,
project: Entity<Project>,
session_id: acp::SessionId,
cx: &mut Context<Self>,
@ -592,7 +589,6 @@ impl AcpThread {
project,
send_task: None,
connection,
child_status,
session_id,
}
}
@ -1121,10 +1117,6 @@ impl AcpThread {
})
}
pub fn child_status(&mut self) -> Option<Task<Result<()>>> {
self.child_status.take()
}
pub fn to_markdown(&self, cx: &App) -> String {
self.entries.iter().map(|e| e.to_markdown(cx)).collect()
}
@ -1793,13 +1785,11 @@ mod tests {
let connection = OldAcpAgentConnection {
connection,
child_status: io_task,
thread: thread_rc,
};
AcpThread::new(
Rc::new(connection),
"Test".into(),
None,
project,
acp::SessionId("test".into()),
cx,