Skip to content

Commit

Permalink
Removed dead code (sonic-net#1198)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasant17 authored and Vasant committed Apr 8, 2020
1 parent 92aad5c commit 205b6da
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1989,27 +1989,17 @@ void PortsOrch::doPortTask(Consumer &consumer)

for (auto it = m_lanesAliasSpeedMap.begin(); it != m_lanesAliasSpeedMap.end();)
{
bool port_created = false;

if (m_portListLaneMap.find(it->first) == m_portListLaneMap.end())
{
if (!addPort(it->first, get<1>(it->second), get<2>(it->second), get<3>(it->second)))
{
throw runtime_error("PortsOrch initialization failure.");
}
port_created = true;
}
else
{
port_created = true;
}

if (port_created)
if (!initPort(get<0>(it->second), it->first))
{
if (!initPort(get<0>(it->second), it->first))
{
throw runtime_error("PortsOrch initialization failure.");
}
throw runtime_error("PortsOrch initialization failure.");
}

it++;
Expand Down

0 comments on commit 205b6da

Please sign in to comment.