Remove code defined under USE_IM_CONTROL #ifdefs

This is not being used and should not be part of the core anyway.
ui: Move check_col/check_row functions to mbyte.c

These functions were only being used by mbyte.c, so move them and add the
"static" modifier.
Merge PR #1568 'Remove code defined under USE_IM_CONTROL #ifdefs'