Fixed Clang errors "unused function".