diff options
author | David Shah <davey1576@gmail.com> | 2018-07-04 14:49:13 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-07-04 14:55:24 +0200 |
commit | f1bddc2852de2412e6ed9399edf269aaaea4b2e0 (patch) | |
tree | 736195cb7551716c8eb0ee34a85c5ce2bd2eb398 /common/nextpnr.h | |
parent | 46db5001234ff42cd5b94407c2122bbf0b2994df (diff) | |
download | nextpnr-f1bddc2852de2412e6ed9399edf269aaaea4b2e0.tar.gz nextpnr-f1bddc2852de2412e6ed9399edf269aaaea4b2e0.tar.bz2 nextpnr-f1bddc2852de2412e6ed9399edf269aaaea4b2e0.zip |
common: Remove deprecated global IdStrings
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'common/nextpnr.h')
-rw-r--r-- | common/nextpnr.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h index 6a45875b..ec0c2f9f 100644 --- a/common/nextpnr.h +++ b/common/nextpnr.h @@ -118,16 +118,6 @@ struct IdString bool operator!=(const IdString &other) const { return index != other.index; } bool empty() const { return index == 0; } - - // --- deprecated old API --- - - static std::unordered_set<BaseCtx *> global_ctx; - - NPNR_DEPRECATED const std::string &global_str() const - { - assert(global_ctx.size() == 1); - return str(*global_ctx.begin()); - } }; NEXTPNR_NAMESPACE_END @@ -252,8 +242,6 @@ struct BaseCtx BaseCtx() { - IdString::global_ctx.insert(this); - idstring_str_to_idx = new std::unordered_map<std::string, int>; idstring_idx_to_str = new std::vector<const std::string *>; IdString::initialize_add(this, "", 0); @@ -262,7 +250,6 @@ struct BaseCtx ~BaseCtx() { - IdString::global_ctx.erase(this); delete idstring_str_to_idx; delete idstring_idx_to_str; } |