Repository navigation
Removed unused code from the EngineHostDao Implementation - #942
Conversation
|
Based on the fact that all the code builds and the UnitTests are also running properly I can give this one a LGTM |
31a5d5a to
161412c
Compare
|
I've pushed another commit to bring this PR up to date with the latest snapshot but it seems the Travis build had some issues sorting out some dependencies. What would be the best course of action at this point? Is a forced push in order, just to get the build started again, or is there a more "elegant" solution to this? :) |
|
@cristofolini you can force push, more important is that the regression suites are run on it. ping @remibergsma ? |
161412c to
4a34901
Compare
|
I had to run one test a couple of times it is bugging us lately: 942.network.results.txt LGTM |
|
LGTM (only code review) |
|
@DaanHoogland That expunge issue is now resolved in the integration tests, my bad :-s |
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>
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.