[ekiga/v4_0] h323-endpoint: remove unused variable



commit 5008216d10019743d5669ada848294a62b14731f
Author: VÃctor Manuel JÃquez Leal <vjaquez igalia com>
Date:   Wed Dec 19 19:27:49 2012 +0100

    h323-endpoint: remove unused variable
    
    The unregistered variable is only used once and it is more clear to
    use account.is_enabled () accessor.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=690618

 lib/engine/components/opal/h323-endpoint.cpp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/lib/engine/components/opal/h323-endpoint.cpp b/lib/engine/components/opal/h323-endpoint.cpp
index 412887e..726a66b 100644
--- a/lib/engine/components/opal/h323-endpoint.cpp
+++ b/lib/engine/components/opal/h323-endpoint.cpp
@@ -308,9 +308,8 @@ void
 Opal::H323::EndPoint::Register (const Opal::Account& account)
 {
   std::string info;
-  bool unregister = !account.is_enabled ();
 
-  if (!unregister && !IsRegisteredWithGatekeeper (account.get_host ())) {
+  if (account.is_enabled () && !IsRegisteredWithGatekeeper (account.get_host ())) {
 
     H323EndPoint::RemoveGatekeeper (0);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]