From 815fba9c73cb44b84a82f7b455ab54bf991dc70d Mon Sep 17 00:00:00 2001 From: Ameya Deshpande Date: Mon, 29 Mar 2021 22:39:11 +0530 Subject: [PATCH] nix-vector-routing: (fixes #373) Remove sub struct Ipv4AddressHash `Ipv4NixVectorRouting::Ipv4AddressHash` should be removed in favor of class `Ipv4AddressHash`. Struct `Ipv4AddressHash` under Ipv4NixVectorRouting is redundant with class `Ipv4AddressHash`. Signed-off-by: Ameya Deshpande --- .../model/ipv4-nix-vector-routing.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/nix-vector-routing/model/ipv4-nix-vector-routing.h b/src/nix-vector-routing/model/ipv4-nix-vector-routing.h index b495cfb8a..d2125c2d7 100644 --- a/src/nix-vector-routing/model/ipv4-nix-vector-routing.h +++ b/src/nix-vector-routing/model/ipv4-nix-vector-routing.h @@ -262,22 +262,6 @@ private: uint32_t m_totalNeighbors; - /** - * \brief Hashing for the ipv4Address class - */ - struct Ipv4AddressHash - { - /** - * \brief operator () - * \param address the IPv4 address to hash - * \return the hash of the address - */ - size_t operator() (const Ipv4Address &address) const - { - return std::hash()(address.Get ()); - } - }; - /** * Mapping of IPv4 address to ns-3 node. *