diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2022-12-22 15:26:39 +0100 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2022-12-22 15:26:39 +0100 |
commit | bd628ce5918129ae37b64abf897bf8270c97b11b (patch) | |
tree | 3584a1d08fbefb3984de9341559cbd84b0afa2cb /common/kernel/util.h | |
parent | a80d63b26810e2e5dab8d3d626f9b3052f734c95 (diff) | |
download | nextpnr-bd628ce5918129ae37b64abf897bf8270c97b11b.tar.gz nextpnr-bd628ce5918129ae37b64abf897bf8270c97b11b.tar.bz2 nextpnr-bd628ce5918129ae37b64abf897bf8270c97b11b.zip |
Remove deprecated functions
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. |