mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-17 07:30:16 -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);
|
||||
}
|
||||
|
||||
public Store getRemoteStore(boolean reload) throws MessagingException {
|
||||
return Store.getRemoteInstance(this, reload);
|
||||
}
|
||||
|
||||
// It'd be great if this actually went into the store implementation
|
||||
// to get this, but that's expensive and not easily accessible
|
||||
// during initialization
|
||||
|
@ -72,8 +72,6 @@ public class AccountSetupCheckSettings extends K9Activity implements OnClickList
|
||||
|
||||
private Account mAccount;
|
||||
|
||||
private boolean mIsClientCertSet;
|
||||
|
||||
private CheckDirection mDirection;
|
||||
|
||||
private boolean mCanceled;
|
||||
@ -122,9 +120,7 @@ public class AccountSetupCheckSettings extends K9Activity implements OnClickList
|
||||
mAccount, mDirection);
|
||||
|
||||
if (mDirection.equals(CheckDirection.INCOMING)) {
|
||||
// refresh URI that stores settings in order to include
|
||||
// client certificate set by user
|
||||
store = mAccount.getRemoteStore(mIsClientCertSet);
|
||||
store = mAccount.getRemoteStore();
|
||||
|
||||
if (store instanceof WebDavStore) {
|
||||
setMessage(R.string.account_setup_check_settings_authenticate);
|
||||
|
@ -51,16 +51,6 @@ public abstract class Store {
|
||||
* Get an instance of a remote mail store.
|
||||
*/
|
||||
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();
|
||||
|
||||
if (uri.startsWith("local")) {
|
||||
@ -68,7 +58,7 @@ public abstract class Store {
|
||||
}
|
||||
|
||||
Store store = sStores.get(uri);
|
||||
if (store == null || reload) {
|
||||
if (store == null) {
|
||||
if (uri.startsWith("imap")) {
|
||||
store = new ImapStore(account);
|
||||
} else if (uri.startsWith("pop3")) {
|
||||
|
@ -290,7 +290,6 @@ public class WebDavStore extends Store {
|
||||
private String mUsername; /* Stores the username for authentications */
|
||||
private String mAlias; /* Stores the alias for the user's mailbox */
|
||||
private String mPassword; /* Stores the password for authentications */
|
||||
private String mClientCertificateAlias;
|
||||
private String mUrl; /* Stores the base URL for the server */
|
||||
private String mHost; /* Stores the host name for the server */
|
||||
private int mPort;
|
||||
@ -326,7 +325,6 @@ public class WebDavStore extends Store {
|
||||
|
||||
mUsername = settings.username;
|
||||
mPassword = settings.password;
|
||||
mClientCertificateAlias = settings.clientCertificateAlias;
|
||||
mAlias = settings.alias;
|
||||
|
||||
mPath = settings.path;
|
||||
|
Loading…
Reference in New Issue
Block a user