From fe460e0f9a59214a50b55ebdeed6eebce4984293 Mon Sep 17 00:00:00 2001 From: jif-oai Date: Wed, 7 Jan 2026 19:54:45 +0000 Subject: [PATCH] chore: drop some deprecated (#8848) --- codex-rs/core/src/thread_manager.rs | 48 ----------------------------- 1 file changed, 48 deletions(-) diff --git a/codex-rs/core/src/thread_manager.rs b/codex-rs/core/src/thread_manager.rs index 742de1c53..d82b242fe 100644 --- a/codex-rs/core/src/thread_manager.rs +++ b/codex-rs/core/src/thread_manager.rs @@ -169,53 +169,6 @@ impl ThreadManager { .await } - #[deprecated(note = "use get_thread")] - pub async fn get_conversation(&self, thread_id: ThreadId) -> CodexResult> { - self.get_thread(thread_id).await - } - - #[deprecated(note = "use start_thread")] - pub async fn new_conversation(&self, config: Config) -> CodexResult { - self.start_thread(config).await - } - - #[deprecated(note = "use resume_thread_from_rollout")] - pub async fn resume_conversation_from_rollout( - &self, - config: Config, - rollout_path: PathBuf, - auth_manager: Arc, - ) -> CodexResult { - self.resume_thread_from_rollout(config, rollout_path, auth_manager) - .await - } - - #[deprecated(note = "use resume_thread_with_history")] - pub async fn resume_conversation_with_history( - &self, - config: Config, - initial_history: InitialHistory, - auth_manager: Arc, - ) -> CodexResult { - self.resume_thread_with_history(config, initial_history, auth_manager) - .await - } - - #[deprecated(note = "use remove_thread")] - pub async fn remove_conversation(&self, thread_id: &ThreadId) -> Option> { - self.remove_thread(thread_id).await - } - - #[deprecated(note = "use fork_thread")] - pub async fn fork_conversation( - &self, - nth_user_message: usize, - config: Config, - path: PathBuf, - ) -> CodexResult { - self.fork_thread(nth_user_message, config, path).await - } - /// Removes the thread from the manager's internal map, though the thread is stored /// as `Arc`, it is possible that other references to it exist elsewhere. /// Returns the thread if the thread was found and removed. @@ -322,7 +275,6 @@ impl ThreadManagerState { )); self.threads.write().await.insert(thread_id, thread.clone()); - #[allow(deprecated)] Ok(NewThread { thread_id, thread,