mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 16:31:14 +01:00
[open-type] Minor tweak to cmp()
Remove codepath that was never taken.
This commit is contained in:
1 parent
9bd75952e5
commit
c68df817a6
1 file changed
-9
@@ -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
|
||||
|
||||
Reference in new issue
Block a user