Skip to content

chore: remove unused jan_utils::string::find_memory_pattern and is_memory_pattern #8074

@atoz96

Description

@atoz96

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions