Fix warnings about unused unused-variable/function.

Signed-off-by: jack <jack.wgm@gmail.com>