diff --git a/daemon/src/sip/sippresence.cpp b/daemon/src/sip/sippresence.cpp index ea259b3d6a0e08f19371d82743567f0a8f49e4d6..1ef71acf3c065ad3138352fe0ad054cb9bc05ee7 100644 --- a/daemon/src/sip/sippresence.cpp +++ b/daemon/src/sip/sippresence.cpp @@ -222,7 +222,6 @@ void SIPPresence::notifyPresSubServer() { s->notify(); } - void SIPPresence::lock() { pj_mutex_lock(mutex_); @@ -237,22 +236,6 @@ void SIPPresence::unlock() pj_mutex_unlock(mutex_); } -bool SIPPresence::tryLock() -{ - pj_status_t status; - status = pj_mutex_trylock(mutex_); - if (status == PJ_SUCCESS) { - mutex_owner_ = pj_thread_this(); - ++mutex_nesting_level_; - } - return status; -} - -bool SIPPresence::isLocked() -{ - return mutex_owner_ == pj_thread_this(); -} - void SIPPresence::fillDoc(pjsip_tx_data *tdata, const pres_msg_data *msg_data) { diff --git a/daemon/src/sip/sippresence.h b/daemon/src/sip/sippresence.h index af8e565428571ce1c1392baa3ef135cb6094b55a..0d50929b5755c8698049c0ba6197c06f18c62e30 100644 --- a/daemon/src/sip/sippresence.h +++ b/daemon/src/sip/sippresence.h @@ -209,13 +209,8 @@ public: return pres_sub_client_list_; } - /** - * Lock methods - */ void lock(); void unlock(); - bool tryLock(); - bool isLocked(); pjsip_pres_status pres_status_data; /**< Presence Data.*/ pjsip_publishc *publish_sess; /**< Client publication session.*/