changeset 5521:0d0f8788884a pg-transactions

removed unused variable dbCapabilities_ in SQLiteDatabaseWrapper::TransactionBase
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Jan 2024 09:29:12 +0100
parents d7c24c9c9448
children dd430a1b21fe
files OrthancServer/Sources/Database/SQLiteDatabaseWrapper.cpp
diffstat 1 files changed, 4 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/SQLiteDatabaseWrapper.cpp	Tue Jan 30 09:24:55 2024 +0100
+++ b/OrthancServer/Sources/Database/SQLiteDatabaseWrapper.cpp	Tue Jan 30 09:29:12 2024 +0100
@@ -300,19 +300,16 @@
     boost::mutex::scoped_lock  lock_;
     IDatabaseListener&         listener_;
     SignalRemainingAncestor&   signalRemainingAncestor_;
-    const IDatabaseWrapper::Capabilities& dbCapabilities_;
 
   public:
     TransactionBase(boost::mutex& mutex,
                     SQLite::Connection& db,
                     IDatabaseListener& listener,
-                    SignalRemainingAncestor& signalRemainingAncestor,
-                    const IDatabaseWrapper::Capabilities& dbCapabilities) :
+                    SignalRemainingAncestor& signalRemainingAncestor) :
       UnitTestsTransaction(db),
       lock_(mutex),
       listener_(listener),
-      signalRemainingAncestor_(signalRemainingAncestor),
-      dbCapabilities_(dbCapabilities)
+      signalRemainingAncestor_(signalRemainingAncestor)
     {
     }
 
@@ -1140,7 +1137,6 @@
         target.insert(s.ColumnString(0));
       }
     }
-
   };
 
 
@@ -1238,7 +1234,7 @@
   public:
     ReadWriteTransaction(SQLiteDatabaseWrapper& that,
                          IDatabaseListener& listener) :
-      TransactionBase(that.mutex_, that.db_, listener, *that.signalRemainingAncestor_, that.GetDatabaseCapabilities()),
+      TransactionBase(that.mutex_, that.db_, listener, *that.signalRemainingAncestor_),
       that_(that),
       transaction_(new SQLite::Transaction(that_.db_))
     {
@@ -1292,7 +1288,7 @@
   public:
     ReadOnlyTransaction(SQLiteDatabaseWrapper& that,
                         IDatabaseListener& listener) :
-      TransactionBase(that.mutex_, that.db_, listener, *that.signalRemainingAncestor_, that.GetDatabaseCapabilities()),
+      TransactionBase(that.mutex_, that.db_, listener, *that.signalRemainingAncestor_),
       that_(that)
     {
       if (that_.activeTransaction_ != NULL)