From dcbb322447a7fb59cabe197ec1dd2307acfa3681 Mon Sep 17 00:00:00 2001 From: gatecat Date: Wed, 2 Jun 2021 12:09:40 +0100 Subject: Remove redundant code after hashlib move Signed-off-by: gatecat --- ice40/archdefs.h | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) (limited to 'ice40') diff --git a/ice40/archdefs.h b/ice40/archdefs.h index 2d962851..6ef5432f 100644 --- a/ice40/archdefs.h +++ b/ice40/archdefs.h @@ -20,8 +20,6 @@ #ifndef ICE40_ARCHDEFS_H #define ICE40_ARCHDEFS_H -#include - #include "base_clusterinfo.h" #include "hashlib.h" #include "idstring.h" @@ -165,48 +163,4 @@ typedef IdString ClusterId; NEXTPNR_NAMESPACE_END -namespace std { -template <> struct hash -{ - std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX BelId &bel) const noexcept { return hash()(bel.index); } -}; - -template <> struct hash -{ - std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX WireId &wire) const noexcept - { - return hash()(wire.index); - } -}; - -template <> struct hash -{ - std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX PipId &pip) const noexcept { return hash()(pip.index); } -}; - -template <> struct hash -{ - std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX GroupId &group) const noexcept - { - std::size_t seed = 0; - boost::hash_combine(seed, hash()(group.type)); - boost::hash_combine(seed, hash()(group.x)); - boost::hash_combine(seed, hash()(group.y)); - return seed; - } -}; - -template <> struct hash -{ - std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX DecalId &decal) const noexcept - { - std::size_t seed = 0; - boost::hash_combine(seed, hash()(decal.type)); - boost::hash_combine(seed, hash()(decal.index)); - return seed; - } -}; - -} // namespace std - #endif /* ICE40_ARCHDEFS_H */ -- cgit v1.2.3