mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-17 19:14:40 +01:00
Removed unused code from the EngineHostDao Implementation After analysing the code within the EngineHostDaoImpl class, we noticed that methods: countBy; findByGuid; findAndUpdateDirectAgentToLoad; findAndUpdateApplianceToLoad; markHostsAsDisconnected; listAllUpAndEnabledNonHAHosts; findLostHosts; getRunningHostCounts; getNextSequence; countRoutingHostsByDataCenter; updateResourceState; findByTypeNameAndZoneId; findHypervisorHostInCluster; lockOneRandomRow; And variables: status_logger; state_logger; Have no usage. Thus, in order to clean up the code, we decided to remove them from EngineHostDaoImpl and its interface (EngineHostDao). All of EngineHostDaoImpl's attributes were set to private, given that they are not accessed by any other class. * pr/942: Removed unused code from the EngineHostDao Implementation. Signed-off-by: Remi Bergsma <github@remi.nl>