diff --git a/src/blackcore/afv/clients/afvclient.cpp b/src/blackcore/afv/clients/afvclient.cpp index f94821363..f8abf5b33 100644 --- a/src/blackcore/afv/clients/afvclient.cpp +++ b/src/blackcore/afv/clients/afvclient.cpp @@ -338,7 +338,6 @@ namespace BlackCore m_output->start(useOutputDevice, m_outputSampleProvider); m_input->start(useInputDevice); - m_startDateTimeUtc = QDateTime::currentDateTimeUtc(); // runs in correct thread m_voiceServerTimer->start(PositionUpdatesMs); // start for preset values diff --git a/src/blackcore/afv/clients/afvclient.h b/src/blackcore/afv/clients/afvclient.h index c7414bfbb..2430f4100 100644 --- a/src/blackcore/afv/clients/afvclient.h +++ b/src/blackcore/afv/clients/afvclient.h @@ -113,9 +113,6 @@ namespace BlackCore //! Client started? bool isStarted() const { return m_isStarted; } - //! When started - const QDateTime &getStartDateTimeUtc() const { return m_startDateTimeUtc; } - //! Muted //! \threadsafe //! @{ @@ -411,8 +408,6 @@ namespace BlackCore std::atomic_bool m_winCoInitialized { false }; //!< Windows only CoInitializeEx std::atomic_bool m_integratedComUnit { false }; //!< is COM unit sychronized, integrated? - QDateTime m_startDateTimeUtc; - double m_inputVolumeDb = 0.0; int m_outputMasterVolumeNormalized = 0; int m_outputVolumeCom1Normalized = 0; diff --git a/src/blackmisc/audio/notificationsounds.h b/src/blackmisc/audio/notificationsounds.h index 27e747c4d..4d2d941c9 100644 --- a/src/blackmisc/audio/notificationsounds.h +++ b/src/blackmisc/audio/notificationsounds.h @@ -25,14 +25,6 @@ namespace BlackMisc */ struct BLACKMISC_EXPORT CNotificationSounds { - //! How to play? - enum PlayMode - { - Single, - SingleWithAutomaticDeletion, - EndlessLoop - }; - //! Play notification enum NotificationFlag { @@ -84,7 +76,6 @@ namespace BlackMisc } // ns } // ns -Q_DECLARE_METATYPE(BlackMisc::Audio::CNotificationSounds::PlayMode) Q_DECLARE_METATYPE(BlackMisc::Audio::CNotificationSounds::Notification) Q_DECLARE_METATYPE(BlackMisc::Audio::CNotificationSounds::NotificationFlag) diff --git a/src/blackmisc/audio/registermetadataaudio.cpp b/src/blackmisc/audio/registermetadataaudio.cpp index 9947d22cc..e11657640 100644 --- a/src/blackmisc/audio/registermetadataaudio.cpp +++ b/src/blackmisc/audio/registermetadataaudio.cpp @@ -26,10 +26,8 @@ namespace BlackMisc // ENUMs qDBusRegisterMetaType(); - qDBusRegisterMetaType(); qDBusRegisterMetaType(); qDBusRegisterMetaType(); - qRegisterMetaTypeStreamOperators(); qRegisterMetaTypeStreamOperators(); } } diff --git a/src/blackmisc/math/mathutils.cpp b/src/blackmisc/math/mathutils.cpp index aeadc8a47..3b003c635 100644 --- a/src/blackmisc/math/mathutils.cpp +++ b/src/blackmisc/math/mathutils.cpp @@ -20,16 +20,6 @@ namespace BlackMisc { namespace Math { - double CMathUtils::hypot(double x, double y) - { - x = qAbs(x); - y = qAbs(y); - const double max = std::max(x, y); - const double min = std::min(x, y); - double r = min / max; - return max * sqrt(1 + r * r); - } - double CMathUtils::cubicRootReal(double x) { const double result = std::pow(qAbs(x), 1.0 / 3.0); diff --git a/src/blackmisc/math/mathutils.h b/src/blackmisc/math/mathutils.h index 33d48350a..d30f9c474 100644 --- a/src/blackmisc/math/mathutils.h +++ b/src/blackmisc/math/mathutils.h @@ -30,9 +30,6 @@ namespace BlackMisc //! No objects, just static CMathUtils() = delete; - //! Calculates the hypotenuse of x and y without overflow - static double hypot(double x, double y); - //! Calculates the square of x static inline double square(double x) {