Removed unused codes. Refs #7789.