mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Remove some unused methods
This commit is contained in:
parent
74e066d356
commit
c3a2faaa7b
2 changed files with 0 additions and 13 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue