Unused function. Perhaps this was used to validate in ``_setMode``?