Skip to content

Commit f9af0cb

Browse files
Remove another unused function
1 parent 441f4ac commit f9af0cb

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

libsemigroups_pybind11/detail/cxx_wrapper.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -155,26 +155,6 @@ def __eq__(self: Self, that) -> bool:
155155
)
156156
raise NameError("_cxx_obj has not been defined")
157157

158-
# TODO rm
159-
def _cxx_obj_type_from(self: Self, samples=(), types=()) -> Any:
160-
py_types = tuple([type(x) for x in samples] + list(types))
161-
lookup = self._py_template_params_to_cxx_type
162-
if py_types not in lookup:
163-
raise ValueError(
164-
f"unexpected keyword argument combination {py_types}, "
165-
f"expected one of {tuple(lookup.keys())}"
166-
)
167-
if not isinstance(lookup[py_types], dict):
168-
return lookup[py_types]
169-
lookup = lookup[py_types]
170-
cxx_types = tuple([type(to_cxx(x)) for x in samples] + list(types))
171-
if cxx_types not in lookup:
172-
raise ValueError(
173-
f"unexpected keyword argument combination {cxx_types}, "
174-
f"expected one of {lookup.keys()}"
175-
)
176-
return lookup[cxx_types]
177-
178158
def py_template_params_from_cxx_obj(self: Self) -> tuple:
179159
"""
180160
Get the py_template_params from _cxx_obj. Requires

0 commit comments

Comments
 (0)