fix coding style
remove useless code