summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Reitter <travis.reitter@collabora.co.uk>2011-10-21 23:05:30 (GMT)
committerTravis Reitter <travis.reitter@collabora.co.uk>2011-10-24 18:39:24 (GMT)
commitaefe543c31a3802b4c5c033b2b45a3744e7dc151 (patch)
tree2e4c3a4fe3e728d197204ea52b2e7f780ee14297
parent49110792cc3de8d7aa7dbab9d7453d26cf3b4f60 (diff)
downloadfolks-aefe543c31a3802b4c5c033b2b45a3744e7dc151.tar.gz
folks-aefe543c31a3802b4c5c033b2b45a3744e7dc151.tar.xz
Simplify NoteFieldDetails.equal()
-rw-r--r--folks/note-details.vala9
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);
}
/**