diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2019-06-07 13:18:43 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2019-06-07 13:19:11 +0200 |
commit | a8871ea8aa6e17b2fbc8f70ce0f96cca18bac928 (patch) | |
tree | 50d4c4ca34396a0896f68397140e47d85e540d59 /common/command.cc | |
parent | 729e6c1ee93d5c1fadffce88c1c48c93ff75fc42 (diff) | |
download | nextpnr-a8871ea8aa6e17b2fbc8f70ce0f96cca18bac928.tar.gz nextpnr-a8871ea8aa6e17b2fbc8f70ce0f96cca18bac928.tar.bz2 nextpnr-a8871ea8aa6e17b2fbc8f70ce0f96cca18bac928.zip |
Cleanup and fixes, flow works now
Diffstat (limited to 'common/command.cc')
-rw-r--r-- | common/command.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/common/command.cc b/common/command.cc index 96008d2b..46d6d014 100644 --- a/common/command.cc +++ b/common/command.cc @@ -233,22 +233,6 @@ void CommandHandler::setupContext(Context *ctx) ctx->timing_driven = false; } -std::vector<std::string> split(const std::string& str, const std::string& delim) -{ - std::vector<std::string> tokens; - size_t prev = 0, pos = 0; - do - { - pos = str.find(delim, prev); - if (pos == std::string::npos) pos = str.length(); - std::string token = str.substr(prev, pos-prev); - if (!token.empty()) tokens.push_back(token); - prev = pos + delim.length(); - } - while (pos < str.length() && prev < str.length()); - return tokens; -} - int CommandHandler::executeMain(std::unique_ptr<Context> ctx) { if (vm.count("test")) { |