summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qflags.h
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2021-04-28 18:58:45 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2021-05-02 20:25:41 +0200
commit79d7801388c9443e0f2927c3f5df4ee2c1015ca4 (patch)
tree908ed58639c1975542cf63d428caa874da51123c /src/corelib/global/qflags.h
parente2145a47fc95b2e69f02a4f1ab024c6be957e76b (diff)
QFlags: kill Q_NO_TYPESAFE_FLAGS
The macro is undocumented and unused. Change-Id: I5c09f4e0e2d41e13d2678e2936e0d0e39ed69639 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/global/qflags.h')
-rw-r--r--src/corelib/global/qflags.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/corelib/global/qflags.h b/src/corelib/global/qflags.h
index 94d9e45acb..3305369ff9 100644
--- a/src/corelib/global/qflags.h
+++ b/src/corelib/global/qflags.h
@@ -83,8 +83,6 @@ Q_DECLARE_TYPEINFO(QIncompatibleFlag, Q_PRIMITIVE_TYPE);
constexpr inline QIncompatibleFlag::QIncompatibleFlag(int value) noexcept : i(value) {}
-#ifndef Q_NO_TYPESAFE_FLAGS
-
template<typename Enum>
class QFlags
{
@@ -190,17 +188,6 @@ constexpr inline void operator-(int f1, QFlags<Flags::enum_type> f2) noexcept =
Q_DECLARE_INCOMPATIBLE_FLAGS(Flags)
-#else /* Q_NO_TYPESAFE_FLAGS */
-
-#ifndef Q_MOC_RUN
-#define Q_DECLARE_FLAGS(Flags, Enum)\
-typedef uint Flags;
-#endif
-
-#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
-
-#endif /* Q_NO_TYPESAFE_FLAGS */
-
QT_END_NAMESPACE
#endif // QFLAGS_H