Remove useless resizeEvent function