[open-type] Minor tweak to cmp()

Remove codepath that was never taken.
This commit is contained in:
Behdad Esfahbod committed 2025-02-02 11:39:01 +00:00
1 parent 9bd75952e5
commit c68df817a6
1 file changed
-9
-9
View File
@@ -86,15 +86,6 @@ struct IntType
return pb->cmp (*pa);
}
template <typename Type2,
hb_enable_if (std::is_integral<Type2>::value &&
sizeof (Type2) < sizeof (int) &&
sizeof (Type) < sizeof (int))>
int cmp (Type2 a) const
{
Type b = v;
return (int) a - (int) b;
}
template <typename Type2,
hb_enable_if (hb_is_convertible (Type2, Type))>
int cmp (Type2 a) const