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);