Skip to content

cleanup(model): drop stale unused suppress on SampleStatus - #1334

Merged
9thLevelSoftware merged 1 commit into
mainfrom
cursor/cleanup-samplestatus-unused-suppress-8860
Oct 23, 2026
Merged

9thLevelSoftware merged 1 commit into
mainfrom
cursor/cleanup-samplestatus-unused-suppress-8860

Conversation

@9thLevelSoftware

Copy link
Copy Markdown
Owner

Summary

  • Drop the class-level @Suppress("unused") on SampleStatus. The class and every status predicate (isRepTopReady, isRepBottomReady, isRomOutsideHigh, isRomOutsideLow, isSpotterActive, isDeloadWarn, isDeloadOccurred) are called from MonitorDataProcessor.processStatusFlags. Companion masks are used by those predicates, and MonitorDataProcessorTest passes DELOAD_OCCURRED, ROM_OUTSIDE_HIGH, and ROM_OUTSIDE_LOW.
  • Remove the repeated KDoc sentence that restated the Monitor characteristic bytes 16–17 description.

No behavior change.

Verification

  • ./gradlew -Pskip.supabase.check=true :shared:compileKotlinMetadata — BUILD SUCCESSFUL
Open in Web Open in Cursor 

SampleStatus and every status predicate are called from
MonitorDataProcessor.processStatusFlags. Companion masks are used by
those predicates and by MonitorDataProcessorTest. The class-level
@Suppress("unused") no longer matches the code, and the KDoc repeated
the monitor-byte description.

Co-authored-by: Devil <9thLevelSoftware@users.noreply.github.com>
@9thLevelSoftware
9thLevelSoftware marked this pull request as ready for review October 23, 2026 14:31
Copilot AI balanced review requested due to automatic review settings October 23, 2026 14:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@kilo-code-bot

kilo-code-bot Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Overview

Severity Count
CRITICAL 0
WARNING 0
SUGGESTION 0

Verdict

Approve — two-line deletion of a stale @Suppress("unused") and a duplicated KDoc sentence, with every removed member confirmed as used.

Correctness / Safety Findings

No correctness or safety findings.

Verification performed on the changed file and its dependents:

  • SampleStatus is instantiated in MonitorDataProcessor.processStatusFlags (shared/src/commonMain/kotlin/com/devil/phoenixproject/data/ble/MonitorDataProcessor.kt:247).
  • All seven predicates are called there: isRomOutsideHigh (L250), isRomOutsideLow (L254), isDeloadOccurred (L260), isDeloadWarn (L270), isSpotterActive (L274), isRepTopReady (L278), isRepBottomReady (L281).
  • Companion masks are used by those predicates, and DELOAD_OCCURRED, ROM_OUTSIDE_HIGH, ROM_OUTSIDE_LOW are additionally referenced by MonitorDataProcessorTest.
  • No allWarningsAsErrors / -Werror in build.gradle.kts, shared/build.gradle.kts, or gradle.properties, so dropping the suppress cannot break the build.

Ponytail Review

Ponytail: Lean already. Ship.

This PR is itself the Ponytail move: it deletes a suppression that no longer matched reality and a KDoc line that restated the sentence above it. Nothing further is cuttable on the changed lines.

Ponytail net: 0 lines.

Suggested Minimal Patch

No patch needed.

Final Merge Guidance

Can merge as-is.

Files Reviewed (1 file)
  • shared/src/commonMain/kotlin/com/devil/phoenixproject/domain/model/SampleStatus.kt

Reviewed by minimax-m3 · Input: 40.9K · Output: 4.7K · Cached: 285.8K

Review guidance: REVIEW.md from base branch main

@9thLevelSoftware
9thLevelSoftware merged commit 80c47e5 into main Oct 23, 2026
11 checks passed
@9thLevelSoftware
9thLevelSoftware deleted the cursor/cleanup-samplestatus-unused-suppress-8860 branch October 23, 2026 16:44
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.

3 participants