connection manager: cleanup

Change-Id: I6a5d7b458f033f0d3dfebefb29bc7a097720e701
diff --git a/src/connectionmanager.cpp b/src/connectionmanager.cpp
index 0b97ac5..238f4b4 100644
--- a/src/connectionmanager.cpp
+++ b/src/connectionmanager.cpp
@@ -1306,10 +1306,10 @@
 
 template<typename ID = dht::Value::Id>
 std::set<ID, std::less<>>
-loadIdList(const std::string& path)
+loadIdList(const std::filesystem::path& path)
 {
     std::set<ID, std::less<>> ids;
-    std::ifstream file = fileutils::ifstream(path);
+    std::ifstream file(path);
     if (!file.is_open()) {
         //JAMI_DBG("Could not load %s", path.c_str());
         return ids;
@@ -1333,7 +1333,7 @@
 void
 saveIdList(const std::filesystem::path& path, const List& ids)
 {
-    std::ofstream file = fileutils::ofstream(path, std::ios::trunc | std::ios::binary);
+    std::ofstream file(path, std::ios::trunc | std::ios::binary);
     if (!file.is_open()) {
         //JAMI_ERR("Could not save to %s", path.c_str());
         return;