[AFV] Ref T739, removed unused code

This commit is contained in:
Klaus Basan
2019-10-16 17:26:16 +02:00
parent 8ecfd8f23d
commit 725a798cba
2 changed files with 0 additions and 30 deletions

View File

@@ -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; }

View File

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