From 1ddaca510991a426dded8d35e234cd6df2028a91 Mon Sep 17 00:00:00 2001 From: Arne Jans Date: Fri, 30 Sep 2011 09:32:07 +0200 Subject: [PATCH] Removed redundant getFlag-method from Task, as its already in AbstractModel --- api/src/com/todoroo/andlib/data/AbstractModel.java | 7 ++++--- api/src/com/todoroo/astrid/data/Task.java | 11 ----------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/api/src/com/todoroo/andlib/data/AbstractModel.java b/api/src/com/todoroo/andlib/data/AbstractModel.java index 4bce165e9..3d45b96cf 100644 --- a/api/src/com/todoroo/andlib/data/AbstractModel.java +++ b/api/src/com/todoroo/andlib/data/AbstractModel.java @@ -331,9 +331,10 @@ public abstract class AbstractModel implements Parcelable, Cloneable { } /** - * Gets the state of the given flag on the given property - * @param property - * @param flag + * Returns the set state of the given flag on the given property + * @param property the property to get the set state of the flag + * @param flag the flag-descriptor (e.g. Task.FLAG_REPEAT_AFTER_COMPLETION) + * @return true if the flag is set */ public boolean getFlag(IntegerProperty property, int flag) { return (getValue(property) & flag) > 0; diff --git a/api/src/com/todoroo/astrid/data/Task.java b/api/src/com/todoroo/astrid/data/Task.java index a8df87e6a..ad747fe9e 100644 --- a/api/src/com/todoroo/astrid/data/Task.java +++ b/api/src/com/todoroo/astrid/data/Task.java @@ -304,17 +304,6 @@ public final class Task extends RemoteModel { return getValue(DUE_DATE) > 0; } - /** - * Returns the set state of the given flag on the given property - * @param property - * @param flag - * @return - */ - @Override - public boolean getFlag(IntegerProperty property, int flag) { - return (getValue(property) & flag) > 0; - } - // --- due and hide until date management /** urgency array index -> significance */