mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
EventHandler: Deprecate SetUsed() and Used() as well.
Seems the latter isn't used outside of the functions that were deprecated in the previous commit and with UsageAnalyzer not making use of this information unclear why we should keep it around. Relates to #3187.
This commit is contained in:
parent
398122206e
commit
ff34a4aa7f
5 changed files with 35 additions and 2 deletions
|
@ -386,7 +386,10 @@ static void use_CPP() {
|
|||
|
||||
for ( auto& e : s->second.events ) {
|
||||
auto h = event_registry->Register(e);
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
h->SetUsed();
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
|
||||
auto finish = s->second.finish_init_func;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue