@classmethod
def remove_event_detect(cls, channel):
    """Remove all callbacks from the event detection for the given gpio channel."""
    cls.CALLBACKS.pop(channel, None)
    cls.MODES.pop(channel, None)
