From f095dc7af10ce2279435ebf943897e82d338b3d8 Mon Sep 17 00:00:00 2001 From: Jonas Karlsson Date: Fri, 14 Aug 2020 11:20:48 +0200 Subject: Remove 'less than' comparison method Change-Id: Ief52da4f9176216ba45d4dc9df5bb341987cb585 Reviewed-by: Konstantin Ritt Reviewed-by: Eskil Abrahamsen Blomfeldt --- src/gui/text/qfontdatabase_p.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/gui/text') diff --git a/src/gui/text/qfontdatabase_p.h b/src/gui/text/qfontdatabase_p.h index 5aff36d5cf..f60671ccb3 100644 --- a/src/gui/text/qfontdatabase_p.h +++ b/src/gui/text/qfontdatabase_p.h @@ -126,13 +126,6 @@ struct Q_GUI_EXPORT QtFontStyle { return !operator==(other); } - - bool operator<(const Key &o) const noexcept - { - int x = (style << 12) + (weight << 14) + stretch; - int y = (o.style << 12) + (o.weight << 14) + o.stretch; - return (x < y); - } }; QtFontStyle(const Key &k) -- cgit v1.2.3