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
|
@ -41,8 +41,12 @@ public:
|
|||
// Returns true if there is at least one local or remote handler.
|
||||
explicit operator bool() const;
|
||||
|
||||
void SetUsed() { used = true; }
|
||||
bool Used() const { return used; }
|
||||
[[deprecated("Remove in v7.1 - Unused event handlers are now found via UsageAnalyzer.")]] void SetUsed() {
|
||||
used = true;
|
||||
}
|
||||
[[deprecated("Remove in v7.1 - Unused event handlers are now found via UsageAnalyzer.")]] bool Used() const {
|
||||
return used;
|
||||
}
|
||||
|
||||
// Handlers marked as error handlers will not be called recursively to
|
||||
// avoid infinite loops if they trigger a similar error themselves.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue