From 430a1287a62a6a76455cbc4ec629dfbb73ae49c7 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 7 Sep 2010 19:23:56 +0000 Subject: [PATCH] Remove NOLUA guards around NewTargets code. This code compiles fine --without-liblua. --- TargetGroup.cc | 4 ---- TargetGroup.h | 2 -- 2 files changed, 6 deletions(-) diff --git a/TargetGroup.cc b/TargetGroup.cc index cc21398a92..ee5e1d47c8 100644 --- a/TargetGroup.cc +++ b/TargetGroup.cc @@ -100,9 +100,7 @@ extern NmapOps o; -#ifndef NOLUA NewTargets *NewTargets::new_targets; -#endif TargetGroup::TargetGroup() { Initialize(); @@ -567,7 +565,6 @@ const std::list &TargetGroup::get_resolved_addrs(void) return resolvedaddrs; } -#ifndef NOLUA /* debug level for the adding target is: 3 */ NewTargets *NewTargets::get (void) { if (new_targets) @@ -662,7 +659,6 @@ unsigned long NewTargets::insert (const char *target) { return new_targets->push(target); } -#endif /* Lookahead is the number of hosts that can be checked (such as ping scanned) in advance. Randomize causes each diff --git a/TargetGroup.h b/TargetGroup.h index a912d980f8..f2a1310127 100644 --- a/TargetGroup.h +++ b/TargetGroup.h @@ -175,7 +175,6 @@ class TargetGroup { }; /* Adding new targets is for NSE scripts */ -#ifndef NOLUA class NewTargets { public: NewTargets(); @@ -218,7 +217,6 @@ class NewTargets { protected: static NewTargets *new_targets; }; -#endif class HostGroupState { public: