Removed useless boolean variable.