Skip to content

Commit 1cccf84

Browse files
committed
Remove unused IoEngine#m_AlreadyExpiredTimer
1 parent 5a2cadd commit 1cccf84

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/base/io-engine.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,8 @@ boost::asio::io_context& IoEngine::GetIoContext()
146146
return m_IoContext;
147147
}
148148

149-
IoEngine::IoEngine() : m_IoContext(), m_KeepAlive(boost::asio::make_work_guard(m_IoContext)), m_Threads(decltype(m_Threads)::size_type(Configuration::Concurrency * 2u)), m_AlreadyExpiredTimer(m_IoContext)
149+
IoEngine::IoEngine() : m_IoContext(), m_KeepAlive(boost::asio::make_work_guard(m_IoContext)), m_Threads(decltype(m_Threads)::size_type(Configuration::Concurrency * 2u))
150150
{
151-
m_AlreadyExpiredTimer.expires_at(boost::posix_time::neg_infin);
152151
m_CpuBoundSemaphore.store(Configuration::Concurrency * 3u / 2u);
153152

154153
for (auto& thread : m_Threads) {

lib/base/io-engine.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ class IoEngine
149149
boost::asio::io_context m_IoContext;
150150
boost::asio::executor_work_guard<boost::asio::io_context::executor_type> m_KeepAlive;
151151
std::vector<std::thread> m_Threads;
152-
boost::asio::deadline_timer m_AlreadyExpiredTimer;
153152

154153
std::atomic_int_fast32_t m_CpuBoundSemaphore;
155154
std::mutex m_CpuBoundWaitingMutex;

0 commit comments

Comments
 (0)