mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Remove dead code: dump_used_event_handlers
This commit is contained in:
parent
2655a65331
commit
5343924eb9
4 changed files with 0 additions and 20 deletions
|
@ -4723,10 +4723,6 @@ const time_machine_profiling = F &redef;
|
|||
## If true, warns about unused event handlers at startup.
|
||||
const check_for_unused_event_handlers = F &redef;
|
||||
|
||||
# If true, dumps all invoked event handlers at startup.
|
||||
# todo::Still used?
|
||||
# const dump_used_event_handlers = F &redef;
|
||||
|
||||
## Deprecated.
|
||||
const suppress_local_output = F &redef;
|
||||
|
||||
|
|
|
@ -184,7 +184,6 @@ int dpd_ignore_ports;
|
|||
TableVal* likely_server_ports;
|
||||
|
||||
int check_for_unused_event_handlers;
|
||||
int dump_used_event_handlers;
|
||||
|
||||
int suppress_local_output;
|
||||
|
||||
|
@ -236,8 +235,6 @@ void init_general_global_var()
|
|||
|
||||
check_for_unused_event_handlers =
|
||||
opt_internal_int("check_for_unused_event_handlers");
|
||||
dump_used_event_handlers =
|
||||
opt_internal_int("dump_used_event_handlers");
|
||||
|
||||
suppress_local_output = opt_internal_int("suppress_local_output");
|
||||
|
||||
|
|
|
@ -186,7 +186,6 @@ extern int dpd_ignore_ports;
|
|||
extern TableVal* likely_server_ports;
|
||||
|
||||
extern int check_for_unused_event_handlers;
|
||||
extern int dump_used_event_handlers;
|
||||
|
||||
extern int suppress_local_output;
|
||||
|
||||
|
|
12
src/main.cc
12
src/main.cc
|
@ -993,18 +993,6 @@ int main(int argc, char** argv)
|
|||
|
||||
delete dead_handlers;
|
||||
|
||||
EventRegistry::string_list* alive_handlers =
|
||||
event_registry->UsedHandlers();
|
||||
|
||||
if ( alive_handlers->length() > 0 && dump_used_event_handlers )
|
||||
{
|
||||
reporter->Info("invoked event handlers:");
|
||||
for ( int i = 0; i < alive_handlers->length(); ++i )
|
||||
reporter->Info("%s", (*alive_handlers)[i]);
|
||||
}
|
||||
|
||||
delete alive_handlers;
|
||||
|
||||
if ( stmts )
|
||||
{
|
||||
stmt_flow_type flow;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue