Remove kill hack in KeychainDatabase

This commit is contained in:
Dominik Schürmann 2014-04-17 18:00:52 +02:00
parent f0e3bb408c
commit 95d25cb6a9

View File

@ -239,15 +239,6 @@ public class KeychainDatabase extends SQLiteOpenHelper {
}
}.getReadableDatabase();
// kill current!
{ // TODO don't kill current.
Log.d(Constants.TAG, "Truncating db...");
SQLiteDatabase d = getWritableDatabase();
d.execSQL("DELETE FROM keyrings_public");
d.close();
Log.d(Constants.TAG, "Ok.");
}
Cursor c = null;
try {
// we insert in two steps: first, all public keys that have secret keys