Delete method and wrong variable fix.

Delete the unnecessary method.
Wrong variable fix.