Skip to content

Commit

Permalink
fix: remove unused events from UserStorageController (#5324)
Browse files Browse the repository at this point in the history
## Explanation

This PR removes unused event types from `UserStorageController`

## References

## Changelog

### `@metamask/profile-sync-controller`

- **REMOVED**: removed unused events from `UserStorageController`

## Checklist

- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've highlighted breaking changes using the "BREAKING" category
above as appropriate
- [x] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes
  • Loading branch information
mathieuartu authored Feb 13, 2025
1 parent e94aede commit 13ca538
Showing 1 changed file with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,23 +256,11 @@ export type UserStorageControllerStateChangeEvent = ControllerStateChangeEvent<
typeof controllerName,
UserStorageControllerState
>;
export type UserStorageControllerAccountSyncingInProgress = {
type: `${typeof controllerName}:accountSyncingInProgress`;
payload: [boolean];
};
export type UserStorageControllerAccountSyncingComplete = {
type: `${typeof controllerName}:accountSyncingComplete`;
payload: [boolean];
};
export type Events =
| UserStorageControllerStateChangeEvent
| UserStorageControllerAccountSyncingInProgress
| UserStorageControllerAccountSyncingComplete;

export type Events = UserStorageControllerStateChangeEvent;

export type AllowedEvents =
| UserStorageControllerStateChangeEvent
| UserStorageControllerAccountSyncingInProgress
| UserStorageControllerAccountSyncingComplete
| KeyringControllerLockEvent
| KeyringControllerUnlockEvent
// Account Syncing Events
Expand Down

0 comments on commit 13ca538

Please sign in to comment.