From d32d538a33e29f1e600b4ceeac6d824f3c22088c Mon Sep 17 00:00:00 2001 From: david Date: Tue, 28 Aug 2012 07:50:30 +0000 Subject: [PATCH] Remove some dead commented code. --- idle_scan.cc | 9 --------- osscan2.cc | 8 +------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/idle_scan.cc b/idle_scan.cc index d0271c4ec..793e3db55 100644 --- a/idle_scan.cc +++ b/idle_scan.cc @@ -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 diff --git a/osscan2.cc b/osscan2.cc index ac4f4b7ad..243b343e1 100644 --- a/osscan2.cc +++ b/osscan2.cc @@ -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; }