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:
@@ -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
|
||||
|
||||
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 */
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user