src: Update source code to use new API and fix compilation errors due to missing headers
Change-Id: I295fbcdcd6ab114a565d9b7531387728a6596884
Refs: 1629
diff --git a/src/repo.cpp b/src/repo.cpp
index 3502763..2c6f3b0 100644
--- a/src/repo.cpp
+++ b/src/repo.cpp
@@ -107,16 +107,10 @@
return repoConfig;
}
-inline static void
-NullDeleter(boost::asio::io_service* variable)
-{
- // do nothing
-}
-
Repo::Repo(boost::asio::io_service& ioService, const RepoConfig& config)
: m_config(config)
, m_scheduler(ioService)
- , m_face(shared_ptr<boost::asio::io_service>(&ioService, &NullDeleter))
+ , m_face(ioService)
, m_storageHandle(openStorage(config))
, m_readHandle(m_face, *m_storageHandle, m_keyChain, m_scheduler)
, m_writeHandle(m_face, *m_storageHandle, m_keyChain, m_scheduler, m_validator)