[epiphany] sqlite-connection: Remove unused rollback transaction method
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] sqlite-connection: Remove unused rollback transaction method
- Date: Tue, 21 Feb 2017 16:41:07 +0000 (UTC)
commit fd742ea85019adb214865d8628f131c19ba8bc20
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Tue Feb 21 09:58:17 2017 -0600
sqlite-connection: Remove unused rollback transaction method
lib/ephy-sqlite-connection.c | 8 --------
lib/ephy-sqlite-connection.h | 1 -
2 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/lib/ephy-sqlite-connection.c b/lib/ephy-sqlite-connection.c
index 6fc10ff..3d34921 100644
--- a/lib/ephy-sqlite-connection.c
+++ b/lib/ephy-sqlite-connection.c
@@ -200,14 +200,6 @@ ephy_sqlite_connection_begin_transaction (EphySQLiteConnection *self, GError **e
}
gboolean
-ephy_sqlite_connection_rollback_transaction (EphySQLiteConnection *self, GError **error)
-{
- if (self->mode == EPHY_SQLITE_CONNECTION_MODE_READ_ONLY)
- return TRUE;
- return ephy_sqlite_connection_execute (self, "ROLLBACK", error);
-}
-
-gboolean
ephy_sqlite_connection_commit_transaction (EphySQLiteConnection *self, GError **error)
{
if (self->mode == EPHY_SQLITE_CONNECTION_MODE_READ_ONLY)
diff --git a/lib/ephy-sqlite-connection.h b/lib/ephy-sqlite-connection.h
index bd6e0d1..2c19b65 100644
--- a/lib/ephy-sqlite-connection.h
+++ b/lib/ephy-sqlite-connection.h
@@ -48,7 +48,6 @@ EphySQLiteStatement * ephy_sqlite_connection_create_statement (EphySQLi
gint64 ephy_sqlite_connection_get_last_insert_id (EphySQLiteConnection *self);
gboolean ephy_sqlite_connection_begin_transaction (EphySQLiteConnection *self, GError
**error);
-gboolean ephy_sqlite_connection_rollback_transaction (EphySQLiteConnection *self, GError
**error);
gboolean ephy_sqlite_connection_commit_transaction (EphySQLiteConnection *self, GError
**error);
gboolean ephy_sqlite_connection_table_exists (EphySQLiteConnection *self, const
char *table_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]