cleanup: Remove unused code

This commit is contained in:
John Colvin committed 2026-03-20 17:02:44 +00:00
1 parent 4801ce6b83
commit ec78e35733
2 files changed
-18

No files matched your search

@@ -39,20 +39,6 @@ inline uint64_t str_to_id(const std::string id_str) {
return std::stoull(id_str);
}
uint64_t get_next_id(
const std::map<std::string, std::map<std::string, std::string>> &all) {
uint64_t rv = 0;
for (const auto &kv1 : all) {
for (const auto &kv2 : kv1.second) {
uint64_t v = str_to_id(kv2.second);
if (v > rv) {
rv = v;
}
}
}
return rv + 1;
}
std::optional<uint64_t> IDGenerator::get_id(
const Venue &venue,
SecurityType type,
@@ -40,10 +40,6 @@ class IDGenerator {
struct PImpl;
std::unique_ptr<PImpl> me;
// These methods are private to force callers to use the [public] overloads with venue, type and
// name params, to ensure consistent formatting.
std::uint64_t get_or_add(const std::string &ns, const std::string &key);
};
} // namespace bts::persistence