removing unnecessary code -refs #6839