Skip to content

refactor: remove deprecated getCurrentAccount() from interface#16484

Open
joshtrichards wants to merge 3 commits intomasterfrom
jtr/drop-deprecated-getCurrentAccount
Open

refactor: remove deprecated getCurrentAccount() from interface#16484
joshtrichards wants to merge 3 commits intomasterfrom
jtr/drop-deprecated-getCurrentAccount

Conversation

@joshtrichards
Copy link
Member

Remove getCurrentAccount() method from CurrentAccountProvider interface.
The method was deprecated in favor of getUser() and had only one external
caller (DrawerActivity), which has been migrated to use getUser() instead.

The implementation in UserAccountManagerImpl remains as it's still used
internally by getUser(), but removing it from the interface prevents new
code from depending on the deprecated Account-based API.

Refs: #4853, #4835

🖼️ Screenshots

🏚️ Before 🏡 After
B A

🏁 Checklist

  • Tests written, or not not needed

Signed-off-by: Josh <josh.t.richards@gmail.com>
…ovider

Remove getCurrentAccount() method from CurrentAccountProvider interface. The method was deprecated in favor of getUser() and had only one external caller (DrawerActivity), which has been migrated to use getUser() instead.

The implementation in UserAccountManagerImpl remains as it's still used internally by getUser(), but removing it from the interface prevents new code from depending on the deprecated Account-based API.

Refs: #4853, #4835

Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards added 3. to review technical debt feature: authentication Authentication or accounts related ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) labels Feb 8, 2026
@github-actions
Copy link

github-actions bot commented Feb 8, 2026

test-Unit test failed, but no output was generated. Maybe a preliminary stage failed.

@github-actions
Copy link

github-actions bot commented Feb 8, 2026

blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review feature: authentication Authentication or accounts related ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) technical debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant