From 8c7e0881ecdf75a71716dc6b5f619c2ca963d8b9 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 13 Jun 2013 15:22:13 +0000 Subject: [PATCH] Remove misleading comments. There is more than just sorting going on here; it's also whether some output is written. --- output.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/output.cc b/output.cc index 57930d21f..080c2685a 100644 --- a/output.cc +++ b/output.cc @@ -2177,7 +2177,6 @@ void printscriptresults(ScriptResults *scriptResults, stype scantype) { char *script_output; if (scriptResults->size() > 0) { - // No sense sorting if we don't need too scriptResults->sort(scriptid_lessthan); if (scantype == SCRIPT_PRE_SCAN) { xml_start_tag("prescript"); @@ -2208,7 +2207,6 @@ void printhostscriptresults(Target *currenths) { char *script_output; if (currenths->scriptResults.size() > 0) { - //no point sorting an empty list currenths->scriptResults.sort(scriptid_lessthan); xml_start_tag("hostscript"); log_write(LOG_PLAIN, "\nHost script results:\n");