Remove references to deprecated sync states.

Change-Id: Ib22bac766fb0ac4d6e764ee92b56a8026baee852
This commit is contained in:
Yu Ping Hu 2013-06-19 17:10:43 -07:00
parent e5088ba0d4
commit e7ebb5de04
2 changed files with 2 additions and 5 deletions

View File

@ -128,8 +128,10 @@ public class Mailbox extends EmailContent implements MailboxColumns, Parcelable
public static final int CHECK_INTERVAL_PUSH = -2;
// The following two sentinel values are used by EAS
// Ping indicates that the EAS mailbox is synced based on a "ping" from the server
@Deprecated
public static final int CHECK_INTERVAL_PING = -3;
// Push-Hold indicates an EAS push or ping Mailbox shouldn't sync just yet
@Deprecated
public static final int CHECK_INTERVAL_PUSH_HOLD = -4;
// Sentinel for PARENT_KEY. Use NO_MAILBOX for toplevel mailboxes (i.e. no parents).

View File

@ -269,11 +269,6 @@ public class MailboxSettings extends PreferenceActivity {
syncInterval = mMailbox.mSyncInterval;
}
}
// In the case of the internal push states, use "push"
if (syncInterval == Mailbox.CHECK_INTERVAL_PING ||
syncInterval == Mailbox.CHECK_INTERVAL_PUSH_HOLD) {
syncInterval = Mailbox.CHECK_INTERVAL_PUSH;
}
return syncInterval;
}