Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/features/mcp/matrix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,6 @@ impl ToolMatrix {
self.runtime_scores.insert(tool, provider, score).await;
}

/// Returns a snapshot of all runtime scores as (tool, provider, score) triples.
pub async fn all_runtime_scores(&self) -> Vec<(String, String, ToolScore)> {
self.runtime_scores.snapshot().await
}

/// Returns a cloned handle to the runtime scores.
///
/// Used internally by the bench engine to update scores directly.
Expand Down
5 changes: 0 additions & 5 deletions src/features/mcp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ impl McpState {
self.scorer.read().await
}

/// Returns a write-locked reference to the scorer.
pub async fn write_scorer(&self) -> tokio::sync::RwLockWriteGuard<'_, ToolScorer> {
self.scorer.write().await
}

/// Returns a handle to the runtime scores for the bench engine.
pub(crate) fn matrix_handle(&self) -> matrix::RuntimeScores {
self.matrix.scores_handle()
Expand Down
5 changes: 0 additions & 5 deletions src/features/tool_layer/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ pub fn lookup(name: &str) -> Option<&'static CatalogEntry> {
CATALOG.get(name)
}

/// Returns all canonical tool names in the catalog.
pub fn all_names() -> impl Iterator<Item = &'static str> {
CATALOG.keys().map(String::as_str)
}

#[cfg(test)]
mod tests {
use super::*;
Expand Down
17 changes: 0 additions & 17 deletions src/pid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,6 @@ pub fn write_pid() -> io::Result<()> {
Ok(())
}

/// Atomically write PID file (write to .tmp then rename).
/// Prevents partial reads during hot restarts.
pub fn write_pid_atomic() -> io::Result<()> {
let pid_file = pid_file_path();

if let Some(parent) = pid_file.parent() {
fs::create_dir_all(parent)?;
}

let tmp_file = pid_file.with_extension("pid.tmp");
let pid = std::process::id();
fs::write(&tmp_file, pid.to_string())?;
fs::rename(&tmp_file, &pid_file)?;
tracing::info!("PID {} written atomically to {:?}", pid, pid_file);
Ok(())
}

/// Read the PID from the PID file
pub fn read_pid() -> io::Result<u32> {
let pid_file = pid_file_path();
Expand Down
Loading