Removed unused code of overwrite dialog.