aboutsummaryrefslogtreecommitdiffstats
path: root/common/nextpnr.h
diff options
context:
space:
mode:
authorClifford Wolf <cliffordvienna@gmail.com>2018-07-04 16:39:30 +0000
committerClifford Wolf <cliffordvienna@gmail.com>2018-07-04 16:39:30 +0000
commit6d423bb24a762e4a53e9b9d279c620c386264287 (patch)
tree5f90b199d7d7e6cd2f7a96224dc3ecddadce154c /common/nextpnr.h
parent09dbcdcfa8c44b420c4a1763f599fd0e59e00d97 (diff)
parent726f2020f140a1f5e89e966e7cbde1d1f79473ba (diff)
downloadnextpnr-6d423bb24a762e4a53e9b9d279c620c386264287.tar.gz
nextpnr-6d423bb24a762e4a53e9b9d279c620c386264287.tar.bz2
nextpnr-6d423bb24a762e4a53e9b9d279c620c386264287.zip
Merge branch 'new_python' into 'master'
New "contextual" system of Python wrappers See merge request SymbioticEDA/nextpnr!4
Diffstat (limited to 'common/nextpnr.h')
-rw-r--r--common/nextpnr.h13
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;
}