Fixed some warnings (unused functions) pointed out by clang-5.1.

Signed-off-by: Haru <haru@dotalux.com>