minor fix, removed unneeded code

Signed-off-by: Gerald <gera2ld@163.com>