Skip to content

Commit

Permalink
Further simplify by removing unnecessary Macro statements
Browse files Browse the repository at this point in the history
  • Loading branch information
edlongman committed Apr 26, 2021
1 parent 57924dc commit e471e06
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/inet/networklayer/common/L3AddressResolver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -531,12 +531,8 @@ cModule *L3AddressResolver::findHostWithAddress(const L3Address& add)
for (int i = 0; i < itable->getNumInterfaces(); i++) {
NetworkInterface *entry = itable->getInterface(i);
switch (add.getType()) {
#ifdef WITH_IPv6
case L3Address::IPv6:
#endif // ifdef WITH_IPv6
#ifdef WITH_IPv4
case L3Address::IPv4:
#endif // ifdef WITH_IPv4
case L3Address::MAC:
if (entry->hasNetworkAddress(add))
return mod;
Expand Down

0 comments on commit e471e06

Please sign in to comment.