diff --git a/src/acr/browser/lightning/HistoryDatabaseHandler.java b/src/acr/browser/lightning/HistoryDatabaseHandler.java index 6666238..fd5e384 100644 --- a/src/acr/browser/lightning/HistoryDatabaseHandler.java +++ b/src/acr/browser/lightning/HistoryDatabaseHandler.java @@ -76,11 +76,8 @@ public class HistoryDatabaseHandler extends SQLiteOpenHelper { * All CRUD(Create, Read, Update, Delete) Operations */ - public synchronized void delete(String url) { - String n = getHistoryItem(url); - if (n != null) { - deleteHistoryItem(n); - } + public synchronized void deleteHistoryItem(String url) { + mDatabase.delete(TABLE_HISTORY, KEY_URL + " = ?", new String[] { url }); } public synchronized void visitHistoryItem(String url, String title) { @@ -193,11 +190,6 @@ public class HistoryDatabaseHandler extends SQLiteOpenHelper { return n; } - // Deleting single item - public synchronized void deleteHistoryItem(String id) { - mDatabase.delete(TABLE_HISTORY, KEY_ID + " = ?", new String[] { String.valueOf(id) }); - } - // Getting items Count public int getHistoryItemsCount() { String countQuery = "SELECT * FROM " + TABLE_HISTORY;