Skip to content

chore(data): drop dead prefs keys, unused Float branch, and narrating kdoc - #165

Merged
stozo04 merged 1 commit into
mainfrom
cursor/data-cleanup-dead-prefs-9347
Sep 1, 2026
Merged

chore(data): drop dead prefs keys, unused Float branch, and narrating kdoc#165
stozo04 merged 1 commit into
mainfrom
cursor/data-cleanup-dead-prefs-9347

Conversation

@stozo04

@stozo04 stozo04 commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Description

Cleanup-only PR that removes dead data/test scaffolding and trims narrating KDoc in the data/diagnostics/baselineprofile area. Subtraction only with no behavior changes.

Deletions

  1. UserPreferencesRepositoryImpl.kt (~lines 40-43): Deleted the three commented-out future DataStore keys (CAPTURE_DURATION_MS, DEFAULT_PLAYBACK_SPEED, AUDIO_ENABLED) and their "Future keys:" aspirational comment. These were never wired and have no concrete plan.

  2. UserPreferencesRepositoryImpl.kt (~lines 26-30): Shrunk constructor KDoc from 5 lines to a one-liner: /** Production implementation of [UserPreferencesRepository]. */. The Flow/edit/IOException behavior is already documented in the code and interface.

  3. UserPreferencesRepository.kt (~lines 5-11): Shrunk interface KDoc from 7 lines to one short line naming what it stores (onboarding, flags, saved-loop count). The DataStore backing and test-swap rationale are standard patterns that don't need repetition.

  4. FirebaseAnalyticsReporterImpl.kt (~line 47): Deleted the speculative is Float -> putDouble(key, value.toDouble()) branch. No Float analytics params exist in the codebase (in fact, logEvent itself is not yet wired per the interface KDoc "custom events are not wired yet"), making this defensive code premature.

  5. BaselineProfileGenerator.kt (~lines 20-23): Deleted the narrating comments that restate startActivityAndWait(). The code is self-documenting; comments should explain non-obvious intent, not restate obvious calls.

Note: FakeVideoImporter in OpenLoopViewModelTest.kt was not deleted because it is still in use (lines 389, 426, 474, 500).

Net change: -23 lines, +2 lines (trimmed KDoc) across 4 files. No code changes, only comment/doc deletions and KDoc trims.

Related Issue

Part of ongoing code hygiene; no specific issue. This PR is independent of PR #164 (camera lens comment cleanup) with no overlapping files.

Type of Change

  • 🔧 Chore: Build configuration changes, dependency updates, or toolchain adjustments

How Has This Been Tested?

  • Manual Verification: Comment/KDoc-only changes; verified diff shows no code modifications beyond comment deletions
  • Automated Tests: Changes are documentation-only and do not affect runtime behavior

Checklist

  • 🧪 My changes have been verified locally and work as expected.
  • 🔍 I have performed a self-review of my own code.
  • ✍️ I have commented my code, particularly in hard-to-understand areas.
  • 📖 My changes generate no compile warnings or errors (allWarningsAsErrors is on).
  • 🧹 Pre-PR sweep GREEN on the final commit: Skipped per task instructions (lightweight check for comment-only cleanup)
  • 🏪 Play-facing docs aligned: N/A — no user-facing changes
  • 🧹 The git branch is clean and references to obsolete branches have been pruned.
Open in Web Open in Cursor 

… kdoc

Co-authored-by: Steven Gates <gates.steven@gmail.com>

@stozo04 stozo04 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

solid. dead prefs keys + float branch gone, kdoc trimmed. correctly kept FakeVideoImporter since it is still used. draft #165 independent of #164.

@stozo04
stozo04 marked this pull request as ready for review September 1, 2026 13:52
@stozo04
stozo04 merged commit 9a8e3cf into main Sep 1, 2026
3 checks passed
@stozo04
stozo04 deleted the cursor/data-cleanup-dead-prefs-9347 branch September 1, 2026 13:52
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