remove useless code, and adjust coding style.