Skip to content

chore: deprecate unused pub fn (dead code cleanup) - #971

Merged
ajianaz merged 1 commit into
developfrom
fix/p2-security-cleanup-deadcode
Aug 10, 2026
Merged

chore: deprecate unused pub fn (dead code cleanup)#971
ajianaz merged 1 commit into
developfrom
fix/p2-security-cleanup-deadcode

Conversation

@ajianaz

@ajianaz ajianaz commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

What

Empat pub fn dengan zero callers di seluruh workspace ditandai #[deprecated]:

  1. cycle_deprecate_cap (lib.rs:325) β€” deprecation cycle cap calculator
  2. remember_json (operations.rs:79) β€” JSON-specific remember wrapper
  3. recall_context (operations.rs:630) β€” context-aware recall helper
  4. count_documents (documents.rs:820) β€” global document count

Why

Cora intelligent scan mendeteksi 4 dead code functions. Karena ini public API di crate uteke-core, removal langsung akan break downstream consumers. #[deprecated] tag memberi signal removal intent tanpa breaking change.

Changes

Setiap function mendapat:

#[deprecated(note = "unused β€” candidate for removal in future version")]
#[allow(dead_code)]

Testing

  • 468 tests pass, 0 fail
  • Clippy: 0 warnings
  • Cora review: No issues found

- cycle_deprecate_cap (lib.rs)
- remember_json (operations.rs)
- recall_context (operations.rs)
- count_documents (documents.rs)

All have zero callers in workspace. Marked #[deprecated] + #[allow(dead_code)]
to signal removal intent without breaking downstream API consumers.
@github-actions

Copy link
Copy Markdown

πŸ” Cora AI Code Review

βœ… No issues found. Code looks good!


Review powered by cora-code Β· BYOK Β· MIT

@ajianaz
ajianaz merged commit d676430 into develop Aug 10, 2026
14 checks passed
@ajianaz
ajianaz deleted the fix/p2-security-cleanup-deadcode branch August 10, 2026 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant