From ab8f8b1533143c46f26148b0435ae782a121e4f9 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Mon, 10 Aug 2020 10:18:15 +0100 Subject: [PATCH] I don't think I need transactions for those --- src/oro/originsdb.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/oro/originsdb.cpp b/src/oro/originsdb.cpp index 21b30db..8319a9e 100644 --- a/src/oro/originsdb.cpp +++ b/src/oro/originsdb.cpp @@ -29,7 +29,6 @@ void OriginsDB::overwrite (const Items& items) { Database db(m_db_mutex); db.exec("DROP TABLE IF EXISTS items"); - SQLite::Transaction transaction(db); //example: //{ @@ -60,8 +59,6 @@ void OriginsDB::overwrite (const Items& items) { query.exec(); query.reset(); } - - transaction.commit(); } void OriginsDB::update (const Icons& icons) { @@ -72,7 +69,6 @@ void OriginsDB::update (const Icons& icons) { //} Database db(m_db_mutex); - SQLite::Transaction transaction(db); SQLite::Statement query(db, "UPDATE items SET icon = ? WHERE item_id = ?"); for (const auto& ico : icons.icons) { @@ -83,8 +79,6 @@ void OriginsDB::update (const Icons& icons) { //base64_decode(std::string_view(ico.icon).substr(std::string_view("data:image/png;base64,").size())); } - - transaction.commit(); } } //namespace oro