Commit aa7774b8 authored by Max Kellermann's avatar Max Kellermann

lib/nfs/Connection: remove deprecated move constructor workaround

Not used anymore because NfsManager now uses boost::intrusive::set instead of std::map.
parent d44da875
......@@ -103,22 +103,6 @@ public:
server(_server), export_name(_export_name),
context(nullptr) {}
#if defined(__GNUC__) && !defined(__clang__) && !GCC_CHECK_VERSION(4,8)
/* needed for NfsManager::GetConnection() due to lack of
std::map::emplace() */
NfsConnection(NfsConnection &&other)
:SocketMonitor(((SocketMonitor &)other).GetEventLoop()),
DeferredMonitor(((DeferredMonitor &)other).GetEventLoop()),
server(std::move(other.server)),
export_name(std::move(other.export_name)),
context(nullptr) {
assert(other.context == nullptr);
assert(other.new_leases.empty());
assert(other.active_leases.empty());
assert(other.callbacks.IsEmpty());
}
#endif
/**
* Must be run from EventLoop's thread.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment