Removed the display_warning function as it is not used anywhere.