Skip to content

Commit bc98ab2

Browse files
authored
Merge pull request #2286 from IntelPython/remove-platform-typeid-lookup-dpctl4pybind11
Remove unused typeid lookup from `dpctl4pybind11.hpp`
2 parents 21f7681 + 3833cee commit bc98ab2

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

dpctl/apis/include/dpctl4pybind11.hpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,6 @@ namespace dpctl
4343
namespace detail
4444
{
4545

46-
// Lookup a type according to its size, and return a value corresponding to the
47-
// NumPy typenum.
48-
template <typename Concrete> constexpr int platform_typeid_lookup()
49-
{
50-
return -1;
51-
}
52-
53-
template <typename Concrete, typename T, typename... Ts, typename... Ints>
54-
constexpr int platform_typeid_lookup(int I, Ints... Is)
55-
{
56-
return sizeof(Concrete) == sizeof(T)
57-
? I
58-
: platform_typeid_lookup<Concrete, Ts...>(Is...);
59-
}
60-
6146
class dpctl_capi
6247
{
6348
public:

0 commit comments

Comments
 (0)