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 --- fpga_interchange/archdefs.h | 65 --------------------------------------------- 1 file changed, 65 deletions(-) (limited to 'fpga_interchange/archdefs.h') diff --git a/fpga_interchange/archdefs.h b/fpga_interchange/archdefs.h index 2d27cccf..a50df43a 100644 --- a/fpga_interchange/archdefs.h +++ b/fpga_interchange/archdefs.h @@ -21,7 +21,6 @@ #ifndef FPGA_INTERCHANGE_ARCHDEFS_H #define FPGA_INTERCHANGE_ARCHDEFS_H -#include #include #include "hashlib.h" @@ -126,68 +125,4 @@ struct ArchCellInfo NEXTPNR_NAMESPACE_END -namespace std { -template <> struct hash -{ - std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX BelId &bel) const noexcept - { - std::size_t seed = 0; - boost::hash_combine(seed, hash()(bel.tile)); - boost::hash_combine(seed, hash()(bel.index)); - return seed; - } -}; - -template <> struct hash -{ - std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX WireId &wire) const noexcept - { - std::size_t seed = 0; - boost::hash_combine(seed, hash()(wire.tile)); - boost::hash_combine(seed, hash()(wire.index)); - return seed; - } -}; - -template <> struct hash -{ - std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX PipId &pip) const noexcept - { - std::size_t seed = 0; - boost::hash_combine(seed, hash()(pip.tile)); - boost::hash_combine(seed, hash()(pip.index)); - return seed; - } -}; - -template <> struct hash -{ - std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX GroupId &group) const noexcept - { - std::size_t seed = 0; - return seed; - } -}; - -template <> struct hash -{ - std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX DecalId &decal) const noexcept - { - std::size_t seed = 0; - return seed; - } -}; - -template <> struct hash -{ - std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX BelBucketId &bucket) const noexcept - { - std::size_t seed = 0; - boost::hash_combine(seed, hash()(bucket.name)); - return seed; - } -}; - -} // namespace std - #endif /* FPGA_INTERCHANGE_ARCHDEFS_H */ -- cgit v1.2.3