From edd1d144970d9ce56335f893d74eef1925b73821 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 12 May 2019 18:14:38 +0200 Subject: [PATCH] Cleanup --- app/src/main/java/eu/faircode/email/DB.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/DB.java b/app/src/main/java/eu/faircode/email/DB.java index c6e8638bcd..bfb78bd4f3 100644 --- a/app/src/main/java/eu/faircode/email/DB.java +++ b/app/src/main/java/eu/faircode/email/DB.java @@ -97,10 +97,6 @@ public abstract class DB extends RoomDatabase { if (sInstance == null) { Context context = ctx.getApplicationContext(); sInstance = migrate(context, getBuilder(context)); - - Log.i("SQLite version=" + exec(sInstance, "SELECT sqlite_version() AS sqlite_version")); - Log.i("SQLite sync=" + exec(sInstance, "PRAGMA synchronous")); - Log.i("SQLite journal=" + exec(sInstance, "PRAGMA journal_mode")); } return sInstance; @@ -114,15 +110,6 @@ public abstract class DB extends RoomDatabase { .setJournalMode(JournalMode.WRITE_AHEAD_LOGGING); } - private static String exec(DB db, String command) { - try (Cursor cursor = db.query(command, new Object[0])) { - if (cursor != null && cursor.moveToNext()) - return cursor.getString(0); - else - return null; - } - } - private static DB migrate(final Context context, RoomDatabase.Builder builder) { // https://www.sqlite.org/lang_altertable.html return builder