[gnome-contacts] ContactsLinking: remove #if DEBUG.



commit 1050b750d4ab3871717dab72a1faafbff2e91ee7
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Sat Dec 23 10:36:55 2017 +0100

    ContactsLinking: remove #if DEBUG.
    
    They can be useful for logging purposes, so no need to hide them behind
    a compiler preprocessing directive.

 src/contacts-linking.vala |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/src/contacts-linking.vala b/src/contacts-linking.vala
index 269ba26..f2c9e1e 100644
--- a/src/contacts-linking.vala
+++ b/src/contacts-linking.vala
@@ -104,9 +104,7 @@ namespace Contacts {
 
     public abstract bool is_referenced_by_persona (Persona persona);
 
-#if DEBUG
     public abstract string to_string ();
-#endif
 
     public virtual bool equal (PersonaAttribute that) {
       return this.property_name == that.property_name;
@@ -135,11 +133,9 @@ namespace Contacts {
       return base.is_removable (from_persona) && value != from_persona.iid;
     }
 
-#if DEBUG
     public override string to_string () {
       return "local_id: " + value;
     }
-#endif
 
     public override bool is_referenced_by_persona (Persona persona) {
       var details = persona as LocalIdDetails;
@@ -231,11 +227,9 @@ namespace Contacts {
       this.detail = detail;
     }
 
-#if DEBUG
     public override string to_string () {
       return "im_addresses: " + protocol + ":" + detail.value;
     }
-#endif
 
     public override bool is_referenced_by_persona (Persona persona) {
       var details = persona as ImDetails;
@@ -340,11 +334,9 @@ namespace Contacts {
       this.detail = detail;
     }
 
-#if DEBUG
     public override string to_string () {
       return "web_service_addresses: " + service + ":" + detail.value;
     }
-#endif
 
     public override bool is_referenced_by_persona (Persona persona) {
       var details = persona as WebServiceDetails;


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