forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unreachable shutdown code from MTRDeviceController.
cleanupAfterStartup is no longer reachable and can be removed. At that point, the only caller of controllerShuttingDown: on the factory is MTRDeviceController_Concrete, so we can go ahead and change the argument type accordingly. At that point it becomes obvious that shutDownCppController and deinitFromFactory are only called on MTRDeviceController_Concrete instances, so those can move from MTRDeviceController_Internal to MTRDeviceController_Concrete, and the implementations in MTRDeviceController can be removed. checkForInitError is now unused on MTRDeviceController, and can be removed. And then "cleanup" is unused and can be removed.
- Loading branch information
1 parent
56c0bd8
commit edb4014
Showing
5 changed files
with
19 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters