From 138745fda6a491c1936b693c627bf6838f96944d Mon Sep 17 00:00:00 2001 From: david Date: Mon, 7 Jun 2010 21:27:04 +0000 Subject: [PATCH] Remove the unused gethostnum static function. I think this was used in checking responses for weird_responses, which we don't do anymore. --- targets.cc | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/targets.cc b/targets.cc index 1c9998177..654200adb 100644 --- a/targets.cc +++ b/targets.cc @@ -105,20 +105,6 @@ using namespace std; extern NmapOps o; -/* Gets the host number (index) of target in the hostbatch array of - pointers. Note that the target MUST EXIST in the array or all - heck will break loose. */ -static inline int gethostnum(Target *hostbatch[], Target *target) { - int i = 0; - do { - if (hostbatch[i] == target) - return i; - } while(++i); - - fatal("fluxx0red"); - return 0; // Unreached -} - /* Conducts an ARP ping sweep of the given hosts to determine which ones are up on a local ethernet network */ static void arpping(Target *hostbatch[], int num_hosts) {