1. remove unuse code.
2. fix code warring

Signed-off-by: Max <ppmsn2005@gmail.com>