-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Warnings] Remove unnecessary member variables to save some memory (#…
…1793) * Use the warning suppression instead of the variable is not used macro in SystemInfo * Use the warning suppression instead of the variable is not used macro in NetworkInfo * Introduce a new DISABLE_WARNING_UNUSED_PRIVATE_FIELD macro Which is specific to clang * Change the macro to in NetworkInfo * Change the macro in SystemInfo * Change macros in PluginServer * Make sure to define the DISABLE_WARNING_UNUSED_PRIVATE_FIELD macro only for clang * Remove unused member variables, declare _hibernateStorage only if hibernate support is enabled * AdapterObserver callback member variable shouldn't be present on Windows and Apple * m_lastUpdateCpuStats is only used on Linux * m_lastUpdateCpuStats should be in the constructor only in case of Linux * Remove the -Wunused-private-field macro as it is no longer needed * Make sure not to initliaze callback for Windows and Apple * Make sure so that m_lastUpdateCpuStats is not defined on Apple but just Linux * Simplify the conditions for m_lastUpdateCpuStats initialization * Remove initialization of _state member variable from ControlData
- Loading branch information
1 parent
ee17481
commit 9b67a12
Showing
5 changed files
with
13 additions
and
11 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