Skip to content

Commit

Permalink
Ref. 5750 remove obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
IkerLuengo committed Feb 6, 2020
1 parent 0ae0848 commit 0f7e175
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/cpp/qos/QosPolicies.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 0 additions & 8 deletions src/cpp/rtps/builtin/data/ParticipantProxyData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0f7e175

Please sign in to comment.