Remove unused function in navigation.