Skip to content

Remove dead isAvailable stub from MusicAssistantManager#56

Merged
chrisuthe merged 1 commit intomainfrom
cleanup/remove-dead-isAvailable-stub
Mar 8, 2026
Merged

Remove dead isAvailable stub from MusicAssistantManager#56
chrisuthe merged 1 commit intomainfrom
cleanup/remove-dead-isAvailable-stub

Conversation

@chrisuthe
Copy link
Copy Markdown
Owner

@chrisuthe chrisuthe commented Mar 8, 2026

Summary

  • Removed MusicAssistantManager.isAvailable, a StateFlow<Boolean> that was permanently hardcoded to false and never wired to connectionState
  • All call sites already use connectionState.value.isAvailable (the property on MaConnectionState), so this stub had zero consumers
  • Updated the class-level KDoc to reference connectionState instead of the deleted property

Test plan

  • Verified no callers of MusicAssistantManager.isAvailable exist in the codebase (all usage is connectionState.value.isAvailable)
  • ./gradlew assembleDebug builds successfully
  • Existing unit tests in MaConnectionStateIsAvailableTest still pass (they test MaConnectionState.isAvailable, not the removed property)

@chrisuthe chrisuthe merged commit 15555d9 into main Mar 8, 2026
The isAvailable property was a StateFlow<Boolean> permanently returning
false -- it was never wired to connectionState and had zero callers.
All call sites already use connectionState.value.isAvailable instead.

Remove the dead property and update the class-level KDoc to reference
connectionState rather than the deleted isAvailable.
@chrisuthe chrisuthe deleted the cleanup/remove-dead-isAvailable-stub branch March 8, 2026 02:40
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