Problem Statement
Both helpers are defined in two places and the jan_utils copy is never consumed:
The only real callers are inside the llamacpp plugin, which defines its own private copies:
$ grep -rn "find_memory_pattern\|is_memory_pattern" src-tauri \
| grep -v "utils/src/string.rs" \
| grep -v "plugins/tauri-plugin-llamacpp"
(empty)
So the jan_utils copies are dead.
Feature Idea
Delete both functions and their tests from src-tauri/utils/src/string.rs. The llamacpp plugin keeps its private copies as-is (they are correct and passing their own tests).
If unifying with the plugin version is desired, open that as a separate follow-up — this issue only covers the dead-code removal in jan_utils.
Problem Statement
Both helpers are defined in two places and the
jan_utilscopy is never consumed:pub fn find_memory_pattern(text: &str) -> Option<(usize, &str)>pub fn is_memory_pattern(content: &str) -> boolThe only real callers are inside the llamacpp plugin, which defines its own private copies:
fn find_memory_pattern(...)fn is_memory_pattern(...)So the
jan_utilscopies are dead.Feature Idea
Delete both functions and their tests from src-tauri/utils/src/string.rs. The llamacpp plugin keeps its private copies as-is (they are correct and passing their own tests).
If unifying with the plugin version is desired, open that as a separate follow-up — this issue only covers the dead-code removal in
jan_utils.