mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-04 08:55:43 +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.
|
* Operator for marshalling pairs with QDataStream.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -226,12 +226,6 @@ const QDBusArgument &operator >>(const QDBusArgument &arg, std::pair<A, B> &pair
|
|||||||
}
|
}
|
||||||
// *INDENT-ON*
|
// *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.
|
//! Windows: prevents unloading of QtDBus shared library until the process is terminated.
|
||||||
//! QtDBus must have been loaded already by the calling process.
|
//! QtDBus must have been loaded already by the calling process.
|
||||||
//! Does nothing on non-Windows platforms.
|
//! Does nothing on non-Windows platforms.
|
||||||
|
|||||||
Reference in New Issue
Block a user