mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 20:18:20 +00:00
Remove EventRegistry::Used and EventRegistry::SetUsed
This commit is contained in:
parent
97fa7cdc0a
commit
e2b03681d1
11 changed files with 6 additions and 111 deletions
12
src/Expr.cc
12
src/Expr.cc
|
@ -414,13 +414,6 @@ NameExpr::NameExpr(IDPtr arg_id, bool const_init) : Expr(EXPR_NAME), id(std::mov
|
|||
SetType(make_intrusive<TypeType>(id->GetType()));
|
||||
else
|
||||
SetType(id->GetType());
|
||||
|
||||
EventHandler* h = event_registry->Lookup(id->Name());
|
||||
if ( h )
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
h->SetUsed();
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
|
||||
bool NameExpr::CanDel() const {
|
||||
|
@ -4417,11 +4410,6 @@ EventExpr::EventExpr(const char* arg_name, ListExprPtr arg_args)
|
|||
event_registry->Register(h, true);
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
h->SetUsed();
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
handler = h;
|
||||
|
||||
if ( args->IsError() ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue