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:
Arne Welzel 2023-11-02 18:29:50 +01:00
parent 398122206e
commit ff34a4aa7f
5 changed files with 35 additions and 2 deletions

View file

@ -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.