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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user