From 725a798cba6001eceb332c8eb26062501bba5595 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Wed, 16 Oct 2019 17:26:16 +0200 Subject: [PATCH] [AFV] Ref T739, removed unused code --- src/blackcore/context/contextaudio.cpp | 23 ----------------------- src/blackcore/context/contextaudio.h | 7 ------- 2 files changed, 30 deletions(-) diff --git a/src/blackcore/context/contextaudio.cpp b/src/blackcore/context/contextaudio.cpp index 5a59e9747..94ec9dd18 100644 --- a/src/blackcore/context/contextaudio.cpp +++ b/src/blackcore/context/contextaudio.cpp @@ -385,29 +385,6 @@ namespace BlackCore this->setVoiceOutputVolume(v); } - CComSystem CContextAudioBase::xCtxGetOwnComSystem(CComSystem::ComUnit unit) const - { - if (!this->getIContextOwnAircraft()) - { - // context not available - const double defFreq = 122.8; - switch (unit) - { - case CComSystem::Com1: return CComSystem::getCom1System(defFreq, defFreq); - case CComSystem::Com2: return CComSystem::getCom2System(defFreq, defFreq); - default: break; - } - return CComSystem::getCom1System(defFreq, defFreq); - } - return this->getIContextOwnAircraft()->getOwnComSystem(unit); - } - - bool CContextAudioBase::xCtxIsComIntegratedWithSimulator() const - { - if (!this->getIContextSimulator()) { return false; } - return this->getIContextSimulator()->getSimulatorSettings().isComIntegrated(); - } - void CContextAudioBase::xCtxNetworkConnectionStatusChanged(const CConnectionStatus &from, const CConnectionStatus &to) { if (!m_voiceClient) { return; } diff --git a/src/blackcore/context/contextaudio.h b/src/blackcore/context/contextaudio.h index fdfa978a0..4ff7661a8 100644 --- a/src/blackcore/context/contextaudio.h +++ b/src/blackcore/context/contextaudio.h @@ -257,13 +257,6 @@ namespace BlackCore void audioDecreaseVolume(bool enabled); //! @} - //! Get current COM unit from cockpit - //! \remark cross context - //! @{ - BlackMisc::Aviation::CComSystem xCtxGetOwnComSystem(BlackMisc::Aviation::CComSystem::ComUnit unit) const; - bool xCtxIsComIntegratedWithSimulator() const; - //! @} - //! Network connection status void xCtxNetworkConnectionStatusChanged(const BlackMisc::Network::CConnectionStatus &from, const BlackMisc::Network::CConnectionStatus &to);