1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 12:41:29 +00:00

Remove some unused methods

This commit is contained in:
dmiller
2021-04-27 19:22:13 +00:00
parent 74e066d356
commit c3a2faaa7b
2 changed files with 0 additions and 13 deletions

View File

@@ -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

View File

@@ -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();