Removed code for old wx versions.