Remove unused function
Fix indentation
Fix compilation warning