mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
remove temporary variables
This commit is contained in:
parent
b166cf03e8
commit
bbf65f1335
@ -432,8 +432,10 @@ public class LocalStore extends Store implements Serializable
|
|||||||
{
|
{
|
||||||
cursor = db.rawQuery("SELECT COUNT(*) FROM messages", null);
|
cursor = db.rawQuery("SELECT COUNT(*) FROM messages", null);
|
||||||
cursor.moveToFirst();
|
cursor.moveToFirst();
|
||||||
int messageCount = cursor.getInt(0);
|
return cursor.getInt(0); // message count
|
||||||
return messageCount;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
@ -458,8 +460,7 @@ public class LocalStore extends Store implements Serializable
|
|||||||
{
|
{
|
||||||
cursor = db.rawQuery("SELECT COUNT(*) FROM folders", null);
|
cursor = db.rawQuery("SELECT COUNT(*) FROM folders", null);
|
||||||
cursor.moveToFirst();
|
cursor.moveToFirst();
|
||||||
int messageCount = cursor.getInt(0);
|
return cursor.getInt(0); // folder count
|
||||||
return messageCount;
|
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
@ -1297,14 +1298,13 @@ public class LocalStore extends Store implements Serializable
|
|||||||
Cursor cursor = null;
|
Cursor cursor = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
cursor = db.rawQuery("SELECT COUNT(*) FROM messages WHERE messages.folder_id = ?",
|
cursor = db.rawQuery("SELECT COUNT(*) FROM messages WHERE folder_id = ?",
|
||||||
new String[]
|
new String[]
|
||||||
{
|
{
|
||||||
Long.toString(mFolderId)
|
Long.toString(mFolderId)
|
||||||
});
|
});
|
||||||
cursor.moveToFirst();
|
cursor.moveToFirst();
|
||||||
int messageCount = cursor.getInt(0);
|
return cursor.getInt(0); //messagecount
|
||||||
return messageCount;
|
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user