Remove an unused state variable from HostScanStats

This commit is contained in:
dmiller 2021-04-23 20:37:39 +00:00
parent a744a969da
commit 28fde911fe
2 changed files with 1 additions and 5 deletions

View file

@ -459,7 +459,6 @@ HostScanStats::HostScanStats(Target *t, UltraScanInfo *UltraSI) {
lastping_sent_numprobes = 0;
nxtpseq = 1;
max_successful_tryno = 0;
tryno_mayincrease = true;
ports_finished = 0;
numprobes_sent = 0;
memset(&completiontime, 0, sizeof(completiontime));
@ -668,6 +667,7 @@ unsigned int HostScanStats::allowedTryno(bool *capped, bool *mayincrease) {
std::list<UltraProbe *>::iterator probeI;
UltraProbe *probe = NULL;
bool allfinished = true;
bool tryno_mayincrease = true;
unsigned int maxval = 0;
/* TODO: This should perhaps differ by scan type. */

View file

@ -485,10 +485,6 @@ public:
/* This is the highest try number that has produced useful results
(such as port status change). */
unsigned int max_successful_tryno;
/* This starts as true because tryno may increase based on results, but
it becomes false if it becomes clear that tryno will not increase
further during the scan */
bool tryno_mayincrease;
int ports_finished; /* The number of ports of this host that have been determined */
int numprobes_sent; /* Number of port probes (not counting pings, but counting retransmits) sent to this host */
/* Boost the scan delay for this host, usually because too many packet