1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Remove some dead commented code.

This commit is contained in:
david
2012-08-28 07:50:30 +00:00
parent 7baef46e3c
commit d32d538a33
2 changed files with 1 additions and 16 deletions

View File

@@ -635,15 +635,6 @@ static void adjust_idle_timing(struct idle_proxy_info *proxy,
static int idlescan_countopen2(struct idle_proxy_info *proxy,
Target *target, u16 *ports, int numports,
struct timeval *sent_time, struct timeval *rcv_time) {
#if 0 /* Testing code */
int i;
for (i = 0; i < numports; i++)
if (ports[i] == 22)
return 1;
return 0;
#endif
int openports;
int tries;
int proxyprobes_sent = 0; /* diff. from tries 'cause sometimes we

View File

@@ -1299,13 +1299,7 @@ HostOsScan::~HostOsScan() {
pcap_close(pd);
pd = NULL;
}
/*
* No need to close ethsd due to caching
* if (ethsd) {
* eth_close(ethsd);
* ethsd = NULL;
* }
*/
/* No need to close ethsd due to caching. */
delete stats;
}