Commit 23d95cfe authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #29736: presence: removed dead code

parent a532ebbe
...@@ -222,7 +222,6 @@ void SIPPresence::notifyPresSubServer() { ...@@ -222,7 +222,6 @@ void SIPPresence::notifyPresSubServer() {
s->notify(); s->notify();
} }
void SIPPresence::lock() void SIPPresence::lock()
{ {
pj_mutex_lock(mutex_); pj_mutex_lock(mutex_);
...@@ -237,22 +236,6 @@ void SIPPresence::unlock() ...@@ -237,22 +236,6 @@ void SIPPresence::unlock()
pj_mutex_unlock(mutex_); 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) void SIPPresence::fillDoc(pjsip_tx_data *tdata, const pres_msg_data *msg_data)
{ {
......
...@@ -209,13 +209,8 @@ public: ...@@ -209,13 +209,8 @@ public:
return pres_sub_client_list_; return pres_sub_client_list_;
} }
/**
* Lock methods
*/
void lock(); void lock();
void unlock(); void unlock();
bool tryLock();
bool isLocked();
pjsip_pres_status pres_status_data; /**< Presence Data.*/ pjsip_pres_status pres_status_data; /**< Presence Data.*/
pjsip_publishc *publish_sess; /**< Client publication session.*/ pjsip_publishc *publish_sess; /**< Client publication session.*/
......
Supports Markdown
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