Their return value was only used in one place. Change it to comparison with a stored name, and make the functions to return void instead. Removing the return boolean makes it possible to change underlying functions to work with std::string and return unique name by value. Pull Request: https://projects.blender.org/blender/blender/pulls/113934