[folks] Simplify PhoneFieldDetails.equal()



commit 49110792cc3de8d7aa7dbab9d7453d26cf3b4f60
Author: Travis Reitter <travis reitter collabora co uk>
Date:   Fri Oct 21 16:05:16 2011 -0700

    Simplify PhoneFieldDetails.equal()

 folks/phone-details.vala |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/folks/phone-details.vala b/folks/phone-details.vala
index 95aff2b..120b7a7 100644
--- a/folks/phone-details.vala
+++ b/folks/phone-details.vala
@@ -78,14 +78,7 @@ public class Folks.PhoneFieldDetails : AbstractFieldDetails<string>
    */
   public override bool equal (AbstractFieldDetails<string> that)
     {
-      if (!base.equal<string> (that))
-        return false;
-
-      var that_fd = that as PhoneFieldDetails;
-      if (that_fd == null)
-        return false;
-
-      return this.values_equal (that_fd);
+      return base.equal<string> (that);
     }
 
   /**



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