diff --git a/Target.cc b/Target.cc index 01a2c1cf6..6253a7a0f 100644 --- a/Target.cc +++ b/Target.cc @@ -78,10 +78,6 @@ extern NmapOps o; Target::Target() { - Initialize(); -} - -void Target::Initialize() { hostname = NULL; targetname = NULL; memset(&seq, 0, sizeof(seq)); @@ -125,11 +121,6 @@ const char * Target::deviceFullName() const { return (devfullname[0] != '\0')? devfullname : NULL; } -void Target::Recycle() { - FreeInternal(); - Initialize(); -} - Target::~Target() { FreeInternal(); #ifndef NOLUA diff --git a/Target.h b/Target.h index 6684b97f8..3cbedc2e7 100644 --- a/Target.h +++ b/Target.h @@ -120,9 +120,6 @@ class Target { public: /* For now ... TODO: a lot of the data members should be made private */ Target(); ~Target(); - /* Recycles the object by freeing internal objects and reinitializing - to default state */ - void Recycle(); /* Returns the address family of the destination address. */ int af() const; /* Fills a sockaddr_storage with the AF_INET or AF_INET6 address @@ -279,7 +276,6 @@ class Target { int pingprobe_state; private: - void Initialize(); void FreeInternal(); // Free memory allocated inside this object // Creates a "presentation" formatted string out of the target's IPv4/IPv6 address void GenerateTargetIPString();