diff --git a/src/org/fdroid/fdroid/DB.java b/src/org/fdroid/fdroid/DB.java index 4485ef21b..208e144b0 100644 --- a/src/org/fdroid/fdroid/DB.java +++ b/src/org/fdroid/fdroid/DB.java @@ -810,16 +810,8 @@ public class DB { } } - // Start the map at the actual number of apps we will have - Cursor c = db.rawQuery("select count(*) from "+TABLE_APP, null); - c.moveToFirst(); - int count = c.getInt(0); - c.close(); - c = null; - - Log.d("FDroid", "Will be fetching " + count + " apps, and this took us "); - - Map apps = new HashMap(count); + Map apps = new HashMap(); + Cursor c = null; long startTime = System.currentTimeMillis(); try { @@ -877,7 +869,7 @@ public class DB { c.close(); c = null; - Log.d("FDroid", "Read app data from database (took " + Log.d("FDroid", "Read app data from database " + " (took " + (System.currentTimeMillis() - startTime) + " ms)"); List repos = getRepos(); @@ -936,7 +928,7 @@ public class DB { c.close(); } - Log.d("FDroid", "Read app and apk data from database (took " + Log.d("FDroid", "Read app and apk data from database " + " (took " + (System.currentTimeMillis() - startTime) + " ms)"); }