From 9abe95383cea6a11e24903bbea246822b465b6ce Mon Sep 17 00:00:00 2001 From: Derick M <58572875+TurtIeSocks@users.noreply.github.com> Date: Fri, 8 Dec 2023 18:37:10 -0500 Subject: [PATCH] fix: cleanup --- .vscode/settings.json | 80 +------------------------------------------ or-tools/tsp/tsp.cc | 19 ++-------- 2 files changed, 3 insertions(+), 96 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index de3d9b04..dafb5b05 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -10,85 +10,7 @@ "editor.formatOnSave": true, "rust-analyzer.showUnlinkedFileNotification": false, "files.associations": { - "vector": "cpp", - "__bit_reference": "cpp", - "__bits": "cpp", - "__config": "cpp", - "__debug": "cpp", - "__errc": "cpp", - "__hash_table": "cpp", - "__locale": "cpp", - "__mutex_base": "cpp", - "__node_handle": "cpp", - "__nullptr": "cpp", - "__split_buffer": "cpp", - "__string": "cpp", - "__threading_support": "cpp", - "__tree": "cpp", - "__tuple": "cpp", - "any": "cpp", - "array": "cpp", - "atomic": "cpp", - "bit": "cpp", - "bitset": "cpp", - "cctype": "cpp", - "chrono": "cpp", - "cinttypes": "cpp", - "clocale": "cpp", - "cmath": "cpp", - "compare": "cpp", - "complex": "cpp", - "concepts": "cpp", - "condition_variable": "cpp", - "csignal": "cpp", - "cstdarg": "cpp", - "cstddef": "cpp", - "cstdint": "cpp", - "cstdio": "cpp", - "cstdlib": "cpp", - "cstring": "cpp", - "ctime": "cpp", - "cwchar": "cpp", - "cwctype": "cpp", - "deque": "cpp", - "exception": "cpp", - "forward_list": "cpp", - "fstream": "cpp", - "future": "cpp", - "initializer_list": "cpp", - "iomanip": "cpp", - "ios": "cpp", - "iosfwd": "cpp", - "iostream": "cpp", - "istream": "cpp", - "limits": "cpp", - "list": "cpp", - "locale": "cpp", - "map": "cpp", - "memory": "cpp", - "mutex": "cpp", - "new": "cpp", - "numeric": "cpp", - "optional": "cpp", - "ostream": "cpp", - "queue": "cpp", - "random": "cpp", - "ratio": "cpp", - "set": "cpp", - "sstream": "cpp", - "stack": "cpp", - "stdexcept": "cpp", - "streambuf": "cpp", - "string": "cpp", - "string_view": "cpp", - "system_error": "cpp", - "tuple": "cpp", - "type_traits": "cpp", - "typeinfo": "cpp", - "unordered_map": "cpp", - "unordered_set": "cpp", - "variant": "cpp", - "algorithm": "cpp" + "vector": "cpp" }, "cmake.configureOnOpen": false } \ No newline at end of file diff --git a/or-tools/tsp/tsp.cc b/or-tools/tsp/tsp.cc index 6c372151..67f60743 100644 --- a/or-tools/tsp/tsp.cc +++ b/or-tools/tsp/tsp.cc @@ -166,18 +166,6 @@ std::vector split(const std::string &s, char delimiter) return tokens; } -double stodpre(std::string const &str, std::size_t const p) -{ - std::stringstream sstrm; - sstrm << std::setprecision(p) << std::fixed << str << std::endl; - - LOG(INFO) << "Stream: " << sstrm.str(); - double d; - sstrm >> d; - - return d; -} - int main(int argc, char *argv[]) { std::map args; @@ -206,12 +194,9 @@ int main(int argc, char *argv[]) } } } - else + else if (i + 1 < argc) { - if (i + 1 < argc) - { - args[key] = argv[++i]; - } + args[key] = argv[++i]; } } }