mirror of
https://github.com/nmap/nmap.git
synced 2025-12-16 12:49:02 +00:00
Remove some dead code.
This commit is contained in:
18
output.cc
18
output.cc
@@ -558,7 +558,6 @@ void printportoutput(Target * currenths, PortList * plist) {
|
|||||||
int servicecol = -1; // service or protocol name
|
int servicecol = -1; // service or protocol name
|
||||||
int versioncol = -1;
|
int versioncol = -1;
|
||||||
int reasoncol = -1;
|
int reasoncol = -1;
|
||||||
// int ownercol = -1; // Used for ident scan
|
|
||||||
int colno = 0;
|
int colno = 0;
|
||||||
unsigned int rowno;
|
unsigned int rowno;
|
||||||
int numrows;
|
int numrows;
|
||||||
@@ -668,8 +667,6 @@ void printportoutput(Target * currenths, PortList * plist) {
|
|||||||
servicecol = colno++;
|
servicecol = colno++;
|
||||||
if (o.reason)
|
if (o.reason)
|
||||||
reasoncol = colno++;
|
reasoncol = colno++;
|
||||||
/* if (o.identscan)
|
|
||||||
ownercol = colno++; */
|
|
||||||
if (o.servicescan || o.rpcscan)
|
if (o.servicescan || o.rpcscan)
|
||||||
versioncol = colno++;
|
versioncol = colno++;
|
||||||
|
|
||||||
@@ -698,10 +695,6 @@ void printportoutput(Target * currenths, PortList * plist) {
|
|||||||
Tbl->addItem(0, versioncol, false, "VERSION", 7);
|
Tbl->addItem(0, versioncol, false, "VERSION", 7);
|
||||||
if (reasoncol > 0)
|
if (reasoncol > 0)
|
||||||
Tbl->addItem(0, reasoncol, false, "REASON", 6);
|
Tbl->addItem(0, reasoncol, false, "REASON", 6);
|
||||||
/*
|
|
||||||
if (ownercol > 0)
|
|
||||||
Tbl->addItem(0, ownercol, false, "OWNER", 5);
|
|
||||||
*/
|
|
||||||
|
|
||||||
log_write(LOG_MACHINE, "\t%s: ", (o.ipprotscan) ? "Protocols" : "Ports");
|
log_write(LOG_MACHINE, "\t%s: ", (o.ipprotscan) ? "Protocols" : "Ports");
|
||||||
|
|
||||||
@@ -803,10 +796,6 @@ void printportoutput(Target * currenths, PortList * plist) {
|
|||||||
if (o.reason)
|
if (o.reason)
|
||||||
Tbl->addItem(rowno, reasoncol, true, port_reason_str(current->reason));
|
Tbl->addItem(rowno, reasoncol, true, port_reason_str(current->reason));
|
||||||
|
|
||||||
/*
|
|
||||||
if (current->owner)
|
|
||||||
Tbl->addItem(rowno, ownercol, true, current->owner);
|
|
||||||
*/
|
|
||||||
if (*sd.fullversion)
|
if (*sd.fullversion)
|
||||||
Tbl->addItem(rowno, versioncol, true, sd.fullversion);
|
Tbl->addItem(rowno, versioncol, true, sd.fullversion);
|
||||||
|
|
||||||
@@ -2188,13 +2177,6 @@ static void printtraceroute_xml(Target * currenths) {
|
|||||||
log_write(LOG_XML, "/>\n");
|
log_write(LOG_XML, "/>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
if (tg->getState() == G_DEAD_TTL)
|
|
||||||
log_write(LOG_XML, "<error errorstr=\"maximum TTL reached\"/>\n");
|
|
||||||
else if (!tg->gotReply || (tp && (tp->ipreplysrc.s_addr != tg->ipdst)))
|
|
||||||
log_write(LOG_XML, "<error errorstr=\"destination not reached (%s)\"/>\n", inet_ntoa(tp->ipdst));
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* traceroute XML footer */
|
/* traceroute XML footer */
|
||||||
log_write(LOG_XML, "</trace>\n");
|
log_write(LOG_XML, "</trace>\n");
|
||||||
log_flush(LOG_XML);
|
log_flush(LOG_XML);
|
||||||
|
|||||||
Reference in New Issue
Block a user