diff options
author | myrtle <gatecat@ds0.me> | 2022-12-22 21:19:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-22 21:19:21 +0100 |
commit | 76fea8268ca7c3f9a9f4f610951f9ea84993e974 (patch) | |
tree | 65d9723eb70a6ba44ade5eda186a0993bf3fb664 /common/kernel/util.h | |
parent | a80d63b26810e2e5dab8d3d626f9b3052f734c95 (diff) | |
parent | 64f7306b24ac26bf05a3009b2f4b54489739ab28 (diff) | |
download | nextpnr-76fea8268ca7c3f9a9f4f610951f9ea84993e974.tar.gz nextpnr-76fea8268ca7c3f9a9f4f610951f9ea84993e974.tar.bz2 nextpnr-76fea8268ca7c3f9a9f4f610951f9ea84993e974.zip |
Merge pull request #1068 from YosysHQ/cleanup_and_sync
Cleanup and sync
Diffstat (limited to 'common/kernel/util.h')
-rw-r--r-- | common/kernel/util.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/common/kernel/util.h b/common/kernel/util.h index c10abb72..f04a956b 100644 --- a/common/kernel/util.h +++ b/common/kernel/util.h @@ -102,25 +102,6 @@ bool bool_or_default(const Container &ct, const KeyType &key, bool def = false) return bool(int_or_default(ct, key, int(def))); }; -// Return a net if port exists, or nullptr -inline const NetInfo *get_net_or_empty(const CellInfo *cell, const IdString port) -{ - auto found = cell->ports.find(port); - if (found != cell->ports.end()) - return found->second.net; - else - return nullptr; -} - -inline NetInfo *get_net_or_empty(CellInfo *cell, const IdString port) -{ - auto found = cell->ports.find(port); - if (found != cell->ports.end()) - return found->second.net; - else - return nullptr; -} - // Get only value from a forward iterator begin/end pair. // // Generates assertion failure if std::distance(begin, end) != 1. |