mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
Remove some unused methods
This commit is contained in:
@@ -78,10 +78,6 @@
|
|||||||
extern NmapOps o;
|
extern NmapOps o;
|
||||||
|
|
||||||
Target::Target() {
|
Target::Target() {
|
||||||
Initialize();
|
|
||||||
}
|
|
||||||
|
|
||||||
void Target::Initialize() {
|
|
||||||
hostname = NULL;
|
hostname = NULL;
|
||||||
targetname = NULL;
|
targetname = NULL;
|
||||||
memset(&seq, 0, sizeof(seq));
|
memset(&seq, 0, sizeof(seq));
|
||||||
@@ -125,11 +121,6 @@ const char * Target::deviceFullName() const {
|
|||||||
return (devfullname[0] != '\0')? devfullname : NULL;
|
return (devfullname[0] != '\0')? devfullname : NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Target::Recycle() {
|
|
||||||
FreeInternal();
|
|
||||||
Initialize();
|
|
||||||
}
|
|
||||||
|
|
||||||
Target::~Target() {
|
Target::~Target() {
|
||||||
FreeInternal();
|
FreeInternal();
|
||||||
#ifndef NOLUA
|
#ifndef NOLUA
|
||||||
|
|||||||
4
Target.h
4
Target.h
@@ -120,9 +120,6 @@ class Target {
|
|||||||
public: /* For now ... TODO: a lot of the data members should be made private */
|
public: /* For now ... TODO: a lot of the data members should be made private */
|
||||||
Target();
|
Target();
|
||||||
~Target();
|
~Target();
|
||||||
/* Recycles the object by freeing internal objects and reinitializing
|
|
||||||
to default state */
|
|
||||||
void Recycle();
|
|
||||||
/* Returns the address family of the destination address. */
|
/* Returns the address family of the destination address. */
|
||||||
int af() const;
|
int af() const;
|
||||||
/* Fills a sockaddr_storage with the AF_INET or AF_INET6 address
|
/* Fills a sockaddr_storage with the AF_INET or AF_INET6 address
|
||||||
@@ -279,7 +276,6 @@ class Target {
|
|||||||
int pingprobe_state;
|
int pingprobe_state;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Initialize();
|
|
||||||
void FreeInternal(); // Free memory allocated inside this object
|
void FreeInternal(); // Free memory allocated inside this object
|
||||||
// Creates a "presentation" formatted string out of the target's IPv4/IPv6 address
|
// Creates a "presentation" formatted string out of the target's IPv4/IPv6 address
|
||||||
void GenerateTargetIPString();
|
void GenerateTargetIPString();
|
||||||
|
|||||||
Reference in New Issue
Block a user