diff --git a/src/BroDoc.cc b/src/BroDoc.cc index 9eb804432a..e6b01c3c3a 100644 --- a/src/BroDoc.cc +++ b/src/BroDoc.cc @@ -112,9 +112,6 @@ void BroDoc::WriteDocFile() const WriteSectionHeading("Summary", '-'); WriteStringList("%s\n", "%s\n\n", summary); - WriteToDoc(":Author(s): "); - WriteStringList("%s, ", "%s\n", authors); - WriteToDoc(":Imports: "); WriteStringList(":doc:`%s`, ", ":doc:`%s`\n", imports); diff --git a/src/BroDoc.h b/src/BroDoc.h index 3ed92d9432..de950083ea 100644 --- a/src/BroDoc.h +++ b/src/BroDoc.h @@ -83,13 +83,6 @@ public: */ void AddPortAnalysis(const std::string& analyzer, const std::string& ports); - /** - * Adds a script author. - * The scanner should call this when it sees "## Author: ..." - * @param s The name, email, etc. of the script author. - */ - void AddAuthor(const std::string& s) { authors.push_back(s); } - /** * Schedules documentation of a script option. An option is * defined as any variable in the script that is declared 'const' @@ -168,7 +161,6 @@ protected: std::string source_filename; std::string packet_filter; - std::list authors; std::list modules; std::list summary; std::list imports; diff --git a/src/scan.l b/src/scan.l index 53b6afd72a..5b82a92788 100644 --- a/src/scan.l +++ b/src/scan.l @@ -146,15 +146,6 @@ ESCSEQ (\\([^\n]|[0-7]+|x[[:xdigit:]]+)) } } -##{OWS}Author:.* { - if ( generate_documentation ) - current_reST_doc->AddAuthor( - skip_whitespace( // Skip whitespace after "Author:" - skip_whitespace(yytext + 2) // Skip whitespace after ## - + 7) // Skip "Author:" - ); - } - ##<.* { yylval.str = copy_string(canon_doc_comment(yytext + 3)); return TOK_POST_DOC;