Remove unused function: is_localhost