Remove dead code

This commit is contained in:
Mat Sutcliffe
2020-07-20 16:04:27 +01:00
parent d4ab27d3cf
commit 40042137fe
2 changed files with 0 additions and 29 deletions

View File

@@ -91,29 +91,6 @@ namespace BlackMisc
}
}
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
/*!
* Operator for marshalling enums with QDataStream.
*/
template <typename E, typename = std::enable_if_t<std::is_enum<E>::value>>
QDataStream &operator <<(QDataStream &stream, E value)
{
return stream << static_cast<int>(value);
}
/*!
* Operator for unmarshalling enums with QDataStream.
*/
template <typename E, typename = std::enable_if_t<std::is_enum<E>::value>>
QDataStream &operator >>(QDataStream &stream, E &value)
{
int temp;
stream >> temp;
value = static_cast<E>(temp);
return stream;
}
#endif // Qt < 5.14.0
/*!
* Operator for marshalling pairs with QDataStream.
*/

View File

@@ -226,12 +226,6 @@ const QDBusArgument &operator >>(const QDBusArgument &arg, std::pair<A, B> &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.