Skip to content

Commit 1cd9347

Browse files
committed
Remove unused IoEngine#m_AlreadyExpiredTimer
1 parent 756999d commit 1cd9347

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
@@ -141,9 +141,8 @@ boost::asio::io_context& IoEngine::GetIoContext()
141141
return m_IoContext;
142142
}
143143

144-
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)
144+
IoEngine::IoEngine() : m_IoContext(), m_KeepAlive(boost::asio::make_work_guard(m_IoContext)), m_Threads(decltype(m_Threads)::size_type(Configuration::Concurrency * 2u))
145145
{
146-
m_AlreadyExpiredTimer.expires_at(boost::posix_time::neg_infin);
147146
m_CpuBoundSemaphore.store(Configuration::Concurrency * 3u / 2u);
148147

149148
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_uint_fast32_t m_CpuBoundSemaphore;
155154
std::mutex m_CpuBoundWaitingMutex;

0 commit comments

Comments
 (0)