[ekiga] Opal: Removed apparently unused code.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Opal: Removed apparently unused code.
- Date: Thu, 22 Jan 2015 07:59:44 +0000 (UTC)
commit dd7047a095a26596c9c16ae6ed30739003896f22
Author: Damien Sandras <dsandras seconix com>
Date: Sat Jan 17 18:50:51 2015 +0100
Opal: Removed apparently unused code.
lib/engine/components/opal/opal-bank.cpp | 22 ----------------------
lib/engine/components/opal/sip-endpoint.cpp | 7 -------
lib/engine/components/opal/sip-endpoint.h | 5 -----
3 files changed, 0 insertions(+), 34 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-bank.cpp b/lib/engine/components/opal/opal-bank.cpp
index 2ed9af0..4a79a90 100644
--- a/lib/engine/components/opal/opal-bank.cpp
+++ b/lib/engine/components/opal/opal-bank.cpp
@@ -115,11 +115,6 @@ Opal::Bank::Bank (Ekiga::ServiceCore& core,
std::cout << "FIXME" << std::endl << std::flush;
//sip_endpoint.mwi_event.connect (boost::bind(&Opal::Bank::on_mwi_event, this, _1, _2));
-
- account_added.connect (boost::bind (&Opal::Bank::update_sip_endpoint_aor_map, this));
- account_updated.connect (boost::bind (&Opal::Bank::update_sip_endpoint_aor_map, this));
- account_removed.connect (boost::bind (&Opal::Bank::update_sip_endpoint_aor_map, this));
- update_sip_endpoint_aor_map ();
}
@@ -362,23 +357,6 @@ Opal::Bank::on_mwi_event (std::string aor,
void
-Opal::Bank::update_sip_endpoint_aor_map ()
-{
- /*
- std::map<std::string, std::string> result;
-
- for (iterator iter = begin ();
- iter != end ();
- ++iter)
- result[(*iter)->get_host ()] = (*iter)->get_aor ();
-
- sip_endpoint.update_aor_map (result);
- */
- std::cout << "FIXME" << std::endl << std::flush;
-}
-
-
-void
Opal::Bank::visit_heaps (boost::function1<bool, Ekiga::HeapPtr> visitor) const
{
visit_objects (visitor);
diff --git a/lib/engine/components/opal/sip-endpoint.cpp b/lib/engine/components/opal/sip-endpoint.cpp
index 7e50266..3af57d9 100644
--- a/lib/engine/components/opal/sip-endpoint.cpp
+++ b/lib/engine/components/opal/sip-endpoint.cpp
@@ -838,10 +838,3 @@ Opal::Sip::EndPoint::push_message_in_main (const std::string uri,
{
dialect->push_message (uri, msg);
}
-
-void
-Opal::Sip::EndPoint::update_aor_map (std::map<std::string, std::string> _accounts)
-{
- PWaitAndSignal m(aorMutex);
- accounts = _accounts;
-}
diff --git a/lib/engine/components/opal/sip-endpoint.h b/lib/engine/components/opal/sip-endpoint.h
index 77e9fc4..508e347 100644
--- a/lib/engine/components/opal/sip-endpoint.h
+++ b/lib/engine/components/opal/sip-endpoint.h
@@ -114,8 +114,6 @@ namespace Opal {
/* Helpers */
static std::string get_aor_domain (const std::string & aor);
- void update_aor_map (std::map<std::string, std::string> _accounts);
-
/* Enable / Disable accounts. The account given as argument
* will be updated to reflect the current account state once
* the operation has been successful.
@@ -147,9 +145,6 @@ namespace Opal {
void push_message_in_main (const std::string uri,
const Ekiga::Message msg);
- PMutex aorMutex;
- std::map<std::string, std::string> accounts;
-
// this object is really managed by opal,
// so the way it is handled here is correct
CallManager & manager;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]