From 49110792cc3de8d7aa7dbab9d7453d26cf3b4f60 Mon Sep 17 00:00:00 2001 From: Travis Reitter Date: Fri, 21 Oct 2011 16:05:16 -0700 Subject: [PATCH] Simplify PhoneFieldDetails.equal() --- folks/phone-details.vala | 9 +-------- 1 file changed, 1 insertion(+), 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 */ public override bool equal (AbstractFieldDetails that) { - if (!base.equal (that)) - return false; - - var that_fd = that as PhoneFieldDetails; - if (that_fd == null) - return false; - - return this.values_equal (that_fd); + return base.equal (that); } /** -- 2.7.4