refactor: Replace os::bts_data_path w/ SystemConfig::data_path

This commit is contained in:
John Colvin committed 2023-03-20 13:26:44 -04:00
1 parent b7fae8a6f5
commit 17402ce94a
16 files changed
+75 -74

No files matched your search

+4 -3
View File
@@ -20,9 +20,10 @@ bool create_if_not_there(std::string const &path) {
}
std::string normalize_data_path(std::string const &input_path) {
std::string result(input_path);
boost::algorithm::replace_first(result, "$data_path", os::bts_data_path());
return result;
// TODO: Remove this method (just need to be 100% sure this substitution
// isn't used in practice)
bts_assert(input_path.find("$data_path") == std::string::npos);
return input_path;
}
} // namespace utils