From: Guilherme Maciel Ferreira Date: Thu, 6 Oct 2011 11:04:26 +0000 (-0300) Subject: Removing commented code X-Git-Tag: v1.3~11^2~34^2~6 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=cc4e69c1469a472072972d04b85610e5cf9df820;p=pingcheck Removing commented code --- diff --git a/src/config/option/hostpingintervaloption.cpp b/src/config/option/hostpingintervaloption.cpp index 4530fca..3972f72 100644 --- a/src/config/option/hostpingintervaloption.cpp +++ b/src/config/option/hostpingintervaloption.cpp @@ -94,10 +94,6 @@ bool HostPingIntervalOption::parse( set_hosts_count( hosts_intervals_count ); - // TODO receive the host_down_limit by parameter, use a std::map to find this configuration inside the Options container - // TODO BOOST_ASSERT( hosts_names_count >= static_cast( host_down_limit ) ); -// BOOST_ASSERT( hosts_names_count == host_port_count ); -// BOOST_ASSERT( hosts_names_count == host_ping_protocol_count ); BOOST_ASSERT( hosts_count == hosts_intervals_count ); return parsed_success; diff --git a/src/config/option/hostpingprotocoloption.cpp b/src/config/option/hostpingprotocoloption.cpp index a73ccdc..fd5987a 100644 --- a/src/config/option/hostpingprotocoloption.cpp +++ b/src/config/option/hostpingprotocoloption.cpp @@ -95,11 +95,7 @@ bool HostPingProtocolOption::parse( set_hosts_count( hosts_protocols_count ); - // TODO receive the host_down_limit by parameter, use a std::map to find this configuration inside the Options container - // TODO BOOST_ASSERT( hosts_names_count >= static_cast( host_down_limit ) ); -// BOOST_ASSERT( hosts_names_count == host_port_count ); BOOST_ASSERT( hosts_count == hosts_protocols_count ); -// BOOST_ASSERT( hosts_names_count == hosts_interval_count ); return parsed_success; } diff --git a/src/config/option/hostportoption.cpp b/src/config/option/hostportoption.cpp index dd48f0d..29b58bd 100644 --- a/src/config/option/hostportoption.cpp +++ b/src/config/option/hostportoption.cpp @@ -94,11 +94,7 @@ bool HostPortOption::parse( set_hosts_count( hosts_ports_count ); - // TODO receive the host_down_limit by parameter, use a std::map to find this configuration inside the Options container - // TODO BOOST_ASSERT( hosts_names_count >= static_cast( host_down_limit ) ); BOOST_ASSERT( hosts_count == hosts_ports_count ); -// BOOST_ASSERT( hosts_names_count == host_ping_protocol_count ); -// BOOST_ASSERT( hosts_names_count == hosts_interval_count ); return parsed_success; }