Fix warning - removing unused function