mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-14 14:10:27 -05:00
Remove two retundant variables
This commit is contained in:
parent
f4a54b9ecb
commit
1898ceee71
@ -641,7 +641,6 @@ public class Account implements BaseAccount
|
|||||||
long folderLoadStart = System.currentTimeMillis();
|
long folderLoadStart = System.currentTimeMillis();
|
||||||
List<? extends Folder> folders = localStore.getPersonalNamespaces(false);
|
List<? extends Folder> folders = localStore.getPersonalNamespaces(false);
|
||||||
long folderLoadEnd = System.currentTimeMillis();
|
long folderLoadEnd = System.currentTimeMillis();
|
||||||
long folderEvalStart = folderLoadEnd;
|
|
||||||
for (Folder folder : folders)
|
for (Folder folder : folders)
|
||||||
{
|
{
|
||||||
LocalFolder localFolder = (LocalFolder)folder;
|
LocalFolder localFolder = (LocalFolder)folder;
|
||||||
@ -690,7 +689,7 @@ public class Account implements BaseAccount
|
|||||||
if (K9.DEBUG)
|
if (K9.DEBUG)
|
||||||
Log.d(K9.LOG_TAG, "Account.getStats() on " + getDescription() + " took " + (endTime - startTime) + " ms;"
|
Log.d(K9.LOG_TAG, "Account.getStats() on " + getDescription() + " took " + (endTime - startTime) + " ms;"
|
||||||
+ " loading " + folders.size() + " took " + (folderLoadEnd - folderLoadStart) + " ms;"
|
+ " loading " + folders.size() + " took " + (folderLoadEnd - folderLoadStart) + " ms;"
|
||||||
+ " evaluating took " + (folderEvalEnd - folderEvalStart) + " ms");
|
+ " evaluating took " + (folderEvalEnd - folderLoadEnd) + " ms");
|
||||||
return stats;
|
return stats;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -860,10 +859,9 @@ public class Account implements BaseAccount
|
|||||||
public synchronized boolean setAutomaticCheckIntervalMinutes(int automaticCheckIntervalMinutes)
|
public synchronized boolean setAutomaticCheckIntervalMinutes(int automaticCheckIntervalMinutes)
|
||||||
{
|
{
|
||||||
int oldInterval = this.mAutomaticCheckIntervalMinutes;
|
int oldInterval = this.mAutomaticCheckIntervalMinutes;
|
||||||
int newInterval = automaticCheckIntervalMinutes;
|
|
||||||
this.mAutomaticCheckIntervalMinutes = automaticCheckIntervalMinutes;
|
this.mAutomaticCheckIntervalMinutes = automaticCheckIntervalMinutes;
|
||||||
|
|
||||||
return (oldInterval != newInterval);
|
return (oldInterval != automaticCheckIntervalMinutes);
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized int getDisplayCount()
|
public synchronized int getDisplayCount()
|
||||||
|
Loading…
Reference in New Issue
Block a user