Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Dec 8, 2023
1 parent 06780a0 commit 9abe953
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 96 deletions.
80 changes: 1 addition & 79 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
19 changes: 2 additions & 17 deletions or-tools/tsp/tsp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -166,18 +166,6 @@ std::vector<std::string> 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<std::string, std::string> args;
Expand Down Expand Up @@ -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];
}
}
}
Expand Down

0 comments on commit 9abe953

Please sign in to comment.