Skip to content

chore: remove unused preview providers with NotImplementedError stubs#1256

Merged
Elforama merged 1 commit intoGreenstand:masterfrom
evanofficial:remove-unused-preview-providers
Apr 5, 2026
Merged

chore: remove unused preview providers with NotImplementedError stubs#1256
Elforama merged 1 commit intoGreenstand:masterfrom
evanofficial:remove-unused-preview-providers

Conversation

@evanofficial
Copy link
Copy Markdown
Contributor

Per the suggested fix in #1233: removed the two preview-provider stubs since neither is referenced anywhere.

  • PreviewUtils.previewSharedPrefs — no usages in the codebase
  • LanguagePickerPreviewProvider — never referenced via @PreviewParameter annotation

Both were full of TODO("Not yet implemented") that would throw NotImplementedError if ever hit. Grepped for @PreviewParameter across app/src and found zero annotations using either class, so they're safe to delete.

Closes #1233

PreviewUtils.previewSharedPrefs and LanguagePickerPreviewProvider were
defined with TODO("Not yet implemented") throughout, but never
referenced via @PreviewParameter annotations or anywhere else in the
codebase. Removing since they were dead code.

Closes Greenstand#1233
@Elforama
Copy link
Copy Markdown
Contributor

Elforama commented Apr 5, 2026

Great work!

@Elforama Elforama merged commit 4928df9 into Greenstand:master Apr 5, 2026
3 checks passed
@evanofficial
Copy link
Copy Markdown
Contributor Author

Great work!

Thank you.

@evanofficial evanofficial deleted the remove-unused-preview-providers branch April 5, 2026 18:07
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.

Implement or remove TODO("Not yet implemented") in preview providers

2 participants