From 663f1b268de18b7d10a305e4f955d04e87d4a8a1 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 27 Jan 2019 20:09:39 +0200 Subject: [PATCH] remove unused method --- .../model/MobileLedgerProfile.java | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java b/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java index 98d150ae..6c7fb195 100644 --- a/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java +++ b/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java @@ -90,35 +90,7 @@ public final class MobileLedgerProfile { db.endTransaction(); } } - public static MobileLedgerProfile loadUUIDFromDB(String profileUUID) { - SQLiteDatabase db = MLDB.getReadableDatabase(); - String name; - String url; - String authUser; - String authPassword; - Boolean useAuthentication; - try (Cursor cursor = db.rawQuery("SELECT name, url, use_authentication, auth_user, " + - "auth_password FROM profiles WHERE uuid=?", - new String[]{profileUUID})) - { - if (cursor.moveToNext()) { - name = cursor.getString(0); - url = cursor.getString(1); - useAuthentication = cursor.getInt(2) == 1; - authUser = useAuthentication ? cursor.getString(3) : null; - authPassword = useAuthentication ? cursor.getString(4) : null; - } - else { - name = "Unknown profile"; - url = "Https://server/url"; - useAuthentication = false; - authUser = authPassword = null; - } - } - return new MobileLedgerProfile(profileUUID, name, url, useAuthentication, authUser, - authPassword); - } public String getUuid() { return uuid; } -- 2.39.5