Remove checkResize, it was only used in one place (osx)