mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
Remove dead code
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user