diff --git a/src/cpp/qos/QosPolicies.cpp b/src/cpp/qos/QosPolicies.cpp index 0e1a71398a5..675143d2923 100644 --- a/src/cpp/qos/QosPolicies.cpp +++ b/src/cpp/qos/QosPolicies.cpp @@ -290,7 +290,6 @@ bool UserDataQosPolicy::addToCDRMessage(CDRMessage_t* msg) bool UserDataQosPolicy::readFromCDRMessage(CDRMessage_t* msg, uint32_t size) { - (void) size; if (max_size_ != 0 && size > max_size_) { return false; diff --git a/src/cpp/rtps/builtin/data/ParticipantProxyData.cpp b/src/cpp/rtps/builtin/data/ParticipantProxyData.cpp index a917ef0c7ad..40f7ccd7732 100644 --- a/src/cpp/rtps/builtin/data/ParticipantProxyData.cpp +++ b/src/cpp/rtps/builtin/data/ParticipantProxyData.cpp @@ -398,14 +398,6 @@ bool ParticipantProxyData::readFromCDRMessage( } case PID_PROPERTY_LIST: { - if (m_properties.max_size() != 0 && - m_properties.max_size() < plength) - { - logError(RTPS_PDP,"User data too big " - << "(size:" << plength - << " max capacity: " << m_properties.max_size() << ")"); - return false; - } this->m_properties.length = plength; uint32_t pos_ref = msg->pos; valid &= m_properties.readFromCDRMessage(msg, plength);