From cdde3f747f50ad0d52dfcb8d2b47b0992461bde9 Mon Sep 17 00:00:00 2001 From: jacques Date: Tue, 28 Apr 2020 22:34:47 +0200 Subject: [PATCH] Change return type of updateDrug --- app/src/main/java/net/foucry/pilldroid/DBHelper.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/src/main/java/net/foucry/pilldroid/DBHelper.java b/app/src/main/java/net/foucry/pilldroid/DBHelper.java index 7007cd1..1bf451f 100644 --- a/app/src/main/java/net/foucry/pilldroid/DBHelper.java +++ b/app/src/main/java/net/foucry/pilldroid/DBHelper.java @@ -39,10 +39,6 @@ class DBHelper extends SQLiteOpenHelper { private static final String[] COLUMS = {KEY_ID, KEY_CIS,KEY_CIP13, KEY_NAME, KEY_ADMIN, KEY_PRES, KEY_STOCK, KEY_PRISE, KEY_SEUIL_WARN, KEY_SEUIL_ALERT}; - public DBHelper() { - super(); - } - public static synchronized DBHelper getInstance(Context context) { if (sInstance == null) { sInstance = new DBHelper(context.getApplicationContext()); @@ -263,9 +259,8 @@ class DBHelper extends SQLiteOpenHelper { /** * * @param medicament object to be updated in DB - * @return code of update operation (should be 0) */ - public int updateDrug(Medicament medicament) { + public void updateDrug(Medicament medicament) { // Get reference to writable DB SQLiteDatabase db = this.getWritableDatabase(); @@ -287,7 +282,6 @@ class DBHelper extends SQLiteOpenHelper { // Close DB db.close(); - return i; } /**