From 40042137fef6243dd68e2f64809f462746d0b963 Mon Sep 17 00:00:00 2001 From: Mat Sutcliffe Date: Mon, 20 Jul 2020 16:04:27 +0100 Subject: [PATCH] Remove dead code --- src/blackmisc/datastream.h | 23 ----------------------- src/blackmisc/dbus.h | 6 ------ 2 files changed, 29 deletions(-) diff --git a/src/blackmisc/datastream.h b/src/blackmisc/datastream.h index 6056a984b..24ceaac50 100644 --- a/src/blackmisc/datastream.h +++ b/src/blackmisc/datastream.h @@ -91,29 +91,6 @@ namespace BlackMisc } } -#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) -/*! - * Operator for marshalling enums with QDataStream. - */ -template ::value>> -QDataStream &operator <<(QDataStream &stream, E value) -{ - return stream << static_cast(value); -} - -/*! - * Operator for unmarshalling enums with QDataStream. - */ -template ::value>> -QDataStream &operator >>(QDataStream &stream, E &value) -{ - int temp; - stream >> temp; - value = static_cast(temp); - return stream; -} -#endif // Qt < 5.14.0 - /*! * Operator for marshalling pairs with QDataStream. */ diff --git a/src/blackmisc/dbus.h b/src/blackmisc/dbus.h index 9d33e2f3b..fa55cc9f0 100644 --- a/src/blackmisc/dbus.h +++ b/src/blackmisc/dbus.h @@ -226,12 +226,6 @@ const QDBusArgument &operator >>(const QDBusArgument &arg, std::pair &pair } // *INDENT-ON* -/*! - * Non member non-friend streaming for QPixmap - */ -// const QDBusArgument &operator>>(const QDBusArgument &argument, QPixmap &pixmap); -// QDBusArgument &operator<<(QDBusArgument &argument, const QPixmap &pixmap); - //! Windows: prevents unloading of QtDBus shared library until the process is terminated. //! QtDBus must have been loaded already by the calling process. //! Does nothing on non-Windows platforms.