updated copyright messages for 2013
[deb_libcec.git] / src / lib / devices / CECDeviceMap.cpp
index b614e1a9175a1c322e28578fcee55ca2390ebb65..84fda1d68d79da50feacbc7e7a8145e2a648b8ae 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the libCEC(R) library.
  *
- * libCEC(R) is Copyright (C) 2011-2012 Pulse-Eight Limited.  All rights reserved.
+ * libCEC(R) is Copyright (C) 2011-2013 Pulse-Eight Limited.  All rights reserved.
  * libCEC(R) is an original work, containing original code.
  *
  * libCEC(R) is a trademark of Pulse-Eight Limited.
@@ -45,8 +45,7 @@ using namespace std;
 using namespace CEC;
 
 CCECDeviceMap::CCECDeviceMap(CCECProcessor *processor) :
-    m_processor(processor),
-    m_iActiveSource(CEC_INVALID_PHYSICAL_ADDRESS)
+    m_processor(processor)
 {
   for (uint8_t iPtr = CECDEVICE_TV; iPtr <= CECDEVICE_BROADCAST; iPtr++)
   {
@@ -207,10 +206,6 @@ CCECBusDevice *CCECDeviceMap::GetActiveSource(void) const
 {
   for (CECDEVICEMAP::const_iterator it = m_busDevices.begin(); it != m_busDevices.end(); it++)
   {
-    if (m_iActiveSource != CEC_INVALID_PHYSICAL_ADDRESS && !it->second->IsActiveSource() &&
-        it->second->GetCurrentPowerStatus() == CEC_POWER_STATUS_ON &&
-        m_iActiveSource == it->second->GetCurrentPhysicalAddress())
-      it->second->MarkAsActiveSource();
     if (it->second->IsActiveSource())
       return it->second;
   }
@@ -289,16 +284,6 @@ void CCECDeviceMap::GetChildrenOf(CECDEVICEVEC& devices, CCECBusDevice* device)
   }
 }
 
-void CCECDeviceMap::SetActiveSource(uint16_t iPhysicalAddress)
-{
-  m_iActiveSource = iPhysicalAddress;
-}
-
-uint16_t CCECDeviceMap::GetActiveSourceAddress(void) const
-{
-  return m_iActiveSource;
-}
-
 void CCECDeviceMap::SignalAll(cec_opcode opcode)
 {
   for (CECDEVICEMAP::iterator it = m_busDevices.begin(); it != m_busDevices.end(); it++)