X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fdevices%2FCECBusDevice.cpp;h=a7ec1ec98e5e596d84132999c71dcc26289975e2;hb=181b347542a6ed9dc1f9ea7bca2051c72b49a9df;hp=64b084a7da24be73b037505c04d93d2ef288e4db;hpb=315ff809364552f6faee215b56ecacb2efaea8e4;p=deb_libcec.git diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index 64b084a..a7ec1ec 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -291,21 +291,6 @@ void CCECBusDevice::SetPowerStatus(const cec_power_status powerStatus) } } -void CCECBusDevice::SetVendorId(const cec_datapacket &data) -{ - if (data.size < 3) - { - AddLog(CEC_LOG_WARNING, "invalid vendor ID received"); - return; - } - - uint64_t iVendorId = ((uint64_t)data[0] << 3) + - ((uint64_t)data[1] << 2) + - (uint64_t)data[2]; - - SetVendorId(iVendorId, data.size >= 4 ? data[3] : 0); -} - void CCECBusDevice::SetVendorId(uint64_t iVendorId, uint8_t iVendorClass /* = 0 */) { m_vendor.vendor = (cec_vendor_id)iVendorId;