mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-19 20:21:45 -05:00
Revert unused code changes
This commit is contained in:
parent
38e9af5320
commit
88016ae52e
@ -1305,10 +1305,6 @@ public class Account implements BaseAccount {
|
|||||||
return Store.getRemoteInstance(this);
|
return Store.getRemoteInstance(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Store getRemoteStore(boolean reload) throws MessagingException {
|
|
||||||
return Store.getRemoteInstance(this, reload);
|
|
||||||
}
|
|
||||||
|
|
||||||
// It'd be great if this actually went into the store implementation
|
// It'd be great if this actually went into the store implementation
|
||||||
// to get this, but that's expensive and not easily accessible
|
// to get this, but that's expensive and not easily accessible
|
||||||
// during initialization
|
// during initialization
|
||||||
|
@ -72,8 +72,6 @@ public class AccountSetupCheckSettings extends K9Activity implements OnClickList
|
|||||||
|
|
||||||
private Account mAccount;
|
private Account mAccount;
|
||||||
|
|
||||||
private boolean mIsClientCertSet;
|
|
||||||
|
|
||||||
private CheckDirection mDirection;
|
private CheckDirection mDirection;
|
||||||
|
|
||||||
private boolean mCanceled;
|
private boolean mCanceled;
|
||||||
@ -122,9 +120,7 @@ public class AccountSetupCheckSettings extends K9Activity implements OnClickList
|
|||||||
mAccount, mDirection);
|
mAccount, mDirection);
|
||||||
|
|
||||||
if (mDirection.equals(CheckDirection.INCOMING)) {
|
if (mDirection.equals(CheckDirection.INCOMING)) {
|
||||||
// refresh URI that stores settings in order to include
|
store = mAccount.getRemoteStore();
|
||||||
// client certificate set by user
|
|
||||||
store = mAccount.getRemoteStore(mIsClientCertSet);
|
|
||||||
|
|
||||||
if (store instanceof WebDavStore) {
|
if (store instanceof WebDavStore) {
|
||||||
setMessage(R.string.account_setup_check_settings_authenticate);
|
setMessage(R.string.account_setup_check_settings_authenticate);
|
||||||
|
@ -51,16 +51,6 @@ public abstract class Store {
|
|||||||
* Get an instance of a remote mail store.
|
* Get an instance of a remote mail store.
|
||||||
*/
|
*/
|
||||||
public synchronized static Store getRemoteInstance(Account account) throws MessagingException {
|
public synchronized static Store getRemoteInstance(Account account) throws MessagingException {
|
||||||
return getRemoteInstance(account, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get an instance of a remote mail store.
|
|
||||||
*
|
|
||||||
* @param reload
|
|
||||||
* reload store also if already instantiated
|
|
||||||
*/
|
|
||||||
public synchronized static Store getRemoteInstance(Account account, boolean reload) throws MessagingException {
|
|
||||||
String uri = account.getStoreUri();
|
String uri = account.getStoreUri();
|
||||||
|
|
||||||
if (uri.startsWith("local")) {
|
if (uri.startsWith("local")) {
|
||||||
@ -68,7 +58,7 @@ public abstract class Store {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Store store = sStores.get(uri);
|
Store store = sStores.get(uri);
|
||||||
if (store == null || reload) {
|
if (store == null) {
|
||||||
if (uri.startsWith("imap")) {
|
if (uri.startsWith("imap")) {
|
||||||
store = new ImapStore(account);
|
store = new ImapStore(account);
|
||||||
} else if (uri.startsWith("pop3")) {
|
} else if (uri.startsWith("pop3")) {
|
||||||
|
@ -290,7 +290,6 @@ public class WebDavStore extends Store {
|
|||||||
private String mUsername; /* Stores the username for authentications */
|
private String mUsername; /* Stores the username for authentications */
|
||||||
private String mAlias; /* Stores the alias for the user's mailbox */
|
private String mAlias; /* Stores the alias for the user's mailbox */
|
||||||
private String mPassword; /* Stores the password for authentications */
|
private String mPassword; /* Stores the password for authentications */
|
||||||
private String mClientCertificateAlias;
|
|
||||||
private String mUrl; /* Stores the base URL for the server */
|
private String mUrl; /* Stores the base URL for the server */
|
||||||
private String mHost; /* Stores the host name for the server */
|
private String mHost; /* Stores the host name for the server */
|
||||||
private int mPort;
|
private int mPort;
|
||||||
@ -326,7 +325,6 @@ public class WebDavStore extends Store {
|
|||||||
|
|
||||||
mUsername = settings.username;
|
mUsername = settings.username;
|
||||||
mPassword = settings.password;
|
mPassword = settings.password;
|
||||||
mClientCertificateAlias = settings.clientCertificateAlias;
|
|
||||||
mAlias = settings.alias;
|
mAlias = settings.alias;
|
||||||
|
|
||||||
mPath = settings.path;
|
mPath = settings.path;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user