remove name_to_adapter (dead code)