refactor: 删除无调用点的死代码(审计项)

- src/parse/mod.rs: parse_italic_assign(17 行,0 引用)
- src/host/sandbox_fs.rs: unavailable
- src/knowledge/extract.rs: stem_of
- src/knowledge/lifecycle.rs: _system_time_now
- src/debug/ctrl.rs: action_channel
- 连带清理 3 处随之失效的 import

cargo build 零警告;cargo test --release 605 passed / 0 failed。
src 行数 53,079 → 52,96x。
This commit is contained in:
cflmy committed 2026-10-22 15:40:31 +08:00
1 parent 8b0ea9ed7a
commit a14a6e221d
5 files changed
+1 -40

No files matched your search

-7
View File
@@ -2,7 +2,6 @@
use std::collections::{HashMap, HashSet};
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::mpsc::{self, Receiver, Sender};
use std::sync::{Arc, Condvar, Mutex};
use std::time::Duration;
@@ -237,12 +236,6 @@ pub fn snapshot_json(s: &DebugSnapshot) -> serde_json::Value {
}
}
/// Channel pair helper if needed by callers.
#[allow(dead_code)]
pub fn action_channel() -> (Sender<DebugAction>, Receiver<DebugAction>) {
mpsc::channel()
}
#[cfg(test)]
mod tests {
use super::*;