Skip to content

Remove unused analytics code#83

Merged
sanggggg merged 1 commit intomainfrom
claude/remove-unused-analytics-01CE9Q9uQEMKLkZhGtjyy67K
Nov 22, 2025
Merged

Remove unused analytics code#83
sanggggg merged 1 commit intomainfrom
claude/remove-unused-analytics-01CE9Q9uQEMKLkZhGtjyy67K

Conversation

@sanggggg
Copy link
Collaborator

Remove 679 lines of dead code from the analytics module:

  • Delete src/tools/analytics.rs (258 LOC)

    • ToolUsageStats struct and related functions
    • analytics_tool_usage, find_messages_with_tool, extract_file_paths, count_by_tool_name
  • Remove unused code from src/database/analytics_repo.rs (418 LOC)

    • DailyUsageStats struct and get_daily_usage_stats()
    • ProviderTrend struct and get_provider_usage_trends()
    • SessionLengthDistribution struct and get_session_length_distribution()
    • HourlyActivity struct and get_hourly_activity()
    • DailyPoint struct
    • generate_insights()
    • get_total_stats()

All active analytics functionality (session analysis, LLM-powered insights, rubric-based evaluation) remains intact.

Remove 679 lines of dead code from the analytics module:

- Delete src/tools/analytics.rs (258 LOC)
  - ToolUsageStats struct and related functions
  - analytics_tool_usage, find_messages_with_tool, extract_file_paths, count_by_tool_name

- Remove unused code from src/database/analytics_repo.rs (418 LOC)
  - DailyUsageStats struct and get_daily_usage_stats()
  - ProviderTrend struct and get_provider_usage_trends()
  - SessionLengthDistribution struct and get_session_length_distribution()
  - HourlyActivity struct and get_hourly_activity()
  - DailyPoint struct
  - generate_insights()
  - get_total_stats()

All active analytics functionality (session analysis, LLM-powered insights,
rubric-based evaluation) remains intact.
@sanggggg sanggggg merged commit 4e81dc2 into main Nov 22, 2025
5 checks passed
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.

2 participants