[folks] Simplify NoteFieldDetails.equal()
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Simplify NoteFieldDetails.equal()
- Date: Mon, 24 Oct 2011 19:19:32 +0000 (UTC)
commit aefe543c31a3802b4c5c033b2b45a3744e7dc151
Author: Travis Reitter <travis reitter collabora co uk>
Date: Fri Oct 21 16:05:30 2011 -0700
Simplify NoteFieldDetails.equal()
folks/note-details.vala | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/folks/note-details.vala b/folks/note-details.vala
index 0c42389..02c3ed9 100644
--- a/folks/note-details.vala
+++ b/folks/note-details.vala
@@ -84,14 +84,7 @@ public class Folks.NoteFieldDetails : AbstractFieldDetails<string>
*/
public override bool equal (AbstractFieldDetails<string> that)
{
- if (!base.equal<string> (that))
- return false;
-
- var that_nfd = that as NoteFieldDetails;
- if (that_nfd == null)
- return false;
-
- return (this.value == that_nfd.value);
+ return base.equal<string> (that);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]