Delete unnecessary functions and unnecessary comments