1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-05-01 05:58:23 +00:00

Remove redundant code after hashlib move

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat
2021-06-02 12:09:40 +01:00
parent 897e2c2fdc
commit dcbb322447
20 changed files with 14 additions and 499 deletions

View File

@@ -80,18 +80,4 @@ struct IdStringList
NEXTPNR_NAMESPACE_END
namespace std {
template <> struct hash<NEXTPNR_NAMESPACE_PREFIX IdStringList>
{
std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX IdStringList &obj) const noexcept
{
std::size_t seed = 0;
boost::hash_combine(seed, hash<size_t>()(obj.size()));
for (auto &id : obj)
boost::hash_combine(seed, hash<NEXTPNR_NAMESPACE_PREFIX IdString>()(id));
return seed;
}
};
} // namespace std
#endif /* IDSTRING_LIST_H */