Removed the ability to star messages (unused in UI).

This commit is contained in:
akwizgran
2013-09-27 18:15:43 +01:00
parent 0a153acd02
commit 7b01e42da8
8 changed files with 22 additions and 184 deletions

View File

@@ -213,9 +213,6 @@ public interface DatabaseComponent {
/** Returns all temporary secrets. */
Collection<TemporarySecret> getSecrets() throws DbException;
/** Returns true if the given message has been starred. */
boolean getStarredFlag(MessageId m) throws DbException;
/** Returns the set of groups to which the user subscribes. */
Collection<Group> getSubscriptions() throws DbException;
@@ -325,12 +322,6 @@ public interface DatabaseComponent {
/** Records the given messages as having been seen by the given contact. */
void setSeen(ContactId c, Collection<MessageId> seen) throws DbException;
/**
* Marks the given message starred or unstarred and returns true if it was
* previously starred.
*/
boolean setStarredFlag(MessageId m, boolean starred) throws DbException;
/**
* Makes the given group visible to the given set of contacts and invisible
* to any other current or future contacts.

View File

@@ -10,9 +10,8 @@ public class GroupMessageHeader extends MessageHeader {
public GroupMessageHeader(MessageId id, MessageId parent, Author author,
String contentType, String subject, long timestamp, boolean read,
boolean starred, GroupId groupId) {
super(id, parent, author, contentType, subject, timestamp, read,
starred);
GroupId groupId) {
super(id, parent, author, contentType, subject, timestamp, read);
this.groupId = groupId;
}

View File

@@ -9,11 +9,10 @@ public abstract class MessageHeader {
private final Author author;
private final String contentType, subject;
private final long timestamp;
private final boolean read, starred;
private final boolean read;
protected MessageHeader(MessageId id, MessageId parent, Author author,
String contentType, String subject, long timestamp, boolean read,
boolean starred) {
String contentType, String subject, long timestamp, boolean read) {
this.id = id;
this.parent = parent;
this.author = author;
@@ -21,7 +20,6 @@ public abstract class MessageHeader {
this.subject = subject;
this.timestamp = timestamp;
this.read = read;
this.starred = starred;
}
/** Returns the message's unique identifier. */
@@ -63,9 +61,4 @@ public abstract class MessageHeader {
public boolean isRead() {
return read;
}
/** Returns true if the message has been starred. */
public boolean isStarred() {
return starred;
}
}

View File

@@ -11,9 +11,8 @@ public class PrivateMessageHeader extends MessageHeader {
public PrivateMessageHeader(MessageId id, MessageId parent, Author author,
String contentType, String subject, long timestamp, boolean read,
boolean starred, ContactId contactId, boolean incoming) {
super(id, parent, author, contentType, subject, timestamp, read,
starred);
ContactId contactId, boolean incoming) {
super(id, parent, author, contentType, subject, timestamp, read);
this.contactId = contactId;
this.incoming = incoming;
}