Switch from linenoise to replxx
Change-Id: Id3e04eca8dbd7e68cef080713296fef3fdc683c5
diff --git a/src/utils.cpp b/src/utils.cpp
index 358bc05..595dc7a 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -67,17 +67,11 @@
return fullNodeName(dataPathToSchemaPath(location), pair);
}
-std::set<std::string> filterAndErasePrefix(const std::set<std::string>& set, const std::string_view prefix)
+std::set<std::string> filterByPrefix(const std::set<std::string>& set, const std::string_view prefix)
{
std::set<std::string> filtered;
std::copy_if(set.begin(), set.end(),
std::inserter(filtered, filtered.end()),
[prefix] (auto it) { return boost::starts_with(it, prefix); });
-
- std::set<std::string> withoutPrefix;
- std::transform(filtered.begin(), filtered.end(),
- std::inserter(withoutPrefix, withoutPrefix.end()),
- [prefix] (auto it) { boost::erase_first(it, prefix); return it; });
- return withoutPrefix;
+ return filtered;
}
-