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:
1 parent
8b0ea9ed7a
commit
a14a6e221d
5 files changed
+1
-40
No files matched your search
@@ -456,11 +456,6 @@ pub fn query(name: &str, args: &serde_json::Value, ctx: &HostContext) -> Result<
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn unavailable(feature: &str) -> String {
|
||||
format!("{feature} unavailable in sandbox")
|
||||
}
|
||||
|
||||
/// Used by fs layer when session is active — map Value path through resolve then CoW.
|
||||
pub fn try_read_value(ctx: &HostContext, path: &Value) -> Result<Option<Value>, String> {
|
||||
let rel = match path {
|
||||
|
||||
Reference in new issue
Block a user