Remove `dispatched_event_max()` from `events.hpp`
Also removed from other files which inherits from `events.hpp`.