mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
Remove dead code
This commit is contained in:
@ -180,15 +180,6 @@ namespace wsrep
|
||||
*/
|
||||
virtual void debug_crash(const char* crash_point) = 0;
|
||||
};
|
||||
|
||||
/**
|
||||
* Debug callback methods. These methods are called only in
|
||||
* builds that have WITH_DEBUG defined.
|
||||
*/
|
||||
class client_debug_callback
|
||||
{
|
||||
public:
|
||||
};
|
||||
}
|
||||
|
||||
#endif // WSREP_CLIENT_SERVICE_HPP
|
||||
|
@ -987,7 +987,6 @@ namespace wsrep
|
||||
|
||||
friend class client_state_switch;
|
||||
friend class high_priority_context;
|
||||
friend class client_toi_mode;
|
||||
friend class transaction;
|
||||
|
||||
void do_acquire_ownership(wsrep::unique_lock<wsrep::mutex>& lock);
|
||||
@ -1122,31 +1121,6 @@ namespace wsrep
|
||||
wsrep::client_state& client_;
|
||||
enum wsrep::client_state::mode orig_mode_;
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
class client_toi_mode
|
||||
{
|
||||
public:
|
||||
client_toi_mode(wsrep::client_state& client)
|
||||
: client_(client)
|
||||
, orig_mode_(client.mode_)
|
||||
{
|
||||
wsrep::unique_lock<wsrep::mutex> lock(client.mutex_);
|
||||
client.mode(lock, wsrep::client_state::m_toi);
|
||||
}
|
||||
~client_toi_mode()
|
||||
{
|
||||
wsrep::unique_lock<wsrep::mutex> lock(client_.mutex_);
|
||||
assert(client_.mode() == wsrep::client_state::m_toi);
|
||||
client_.mode(lock, orig_mode_);
|
||||
}
|
||||
private:
|
||||
wsrep::client_state& client_;
|
||||
enum wsrep::client_state::mode orig_mode_;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // WSREP_CLIENT_STATE_HPP
|
||||
|
Reference in New Issue
Block a user