Remove unused DB::Crypto methods 13/237913/5
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Mon, 6 Jul 2020 10:55:32 +0000 (12:55 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Thu, 9 Jul 2020 16:38:14 +0000 (18:38 +0200)
Change-Id: Ie9f54b02736f1eebd72a496f87e250bbdd48b7aa

src/manager/service/db-crypto.cpp
src/manager/service/db-crypto.h

index f7c09c1..23b7d1d 100644 (file)
@@ -259,32 +259,6 @@ Crypto &Crypto::operator=(Crypto &&other)
        return *this;
 }
 
-void Crypto::createTable(const char *create_cmd, const char *table_name)
-{
-       try {
-               m_connection->ExecCommand(create_cmd);
-       } catch (const SqlConnection::Exception::SyntaxError &) {
-               LogError("Couldn't create table : " << table_name << "!");
-               throw;
-       } catch (const SqlConnection::Exception::InternalError &) {
-               LogError("Sqlite got into infinite busy state");
-               throw;
-       }
-}
-
-void Crypto::createView(const char *create_cmd)
-{
-       try {
-               m_connection->ExecCommand(create_cmd);
-       } catch (const SqlConnection::Exception::SyntaxError &) {
-               LogError("Couldn't create view!");
-               throw;
-       } catch (const SqlConnection::Exception::InternalError &) {
-               LogError("Sqlite got into infinite busy state");
-               throw;
-       }
-}
-
 bool Crypto::getDBVersion(int &schemaVersion)
 {
        Transaction transaction(this);
index 6372320..642505c 100644 (file)
@@ -127,11 +127,6 @@ public:
                const ClientId &owner,
                const ClientId &accessor) const;
 
-       // transactions
-       int beginTransaction();
-       int commitTransaction();
-       int rollbackTransaction();
-
        class Transaction {
        public:
                explicit Transaction(Crypto *db) : m_db(db), m_inTransaction(false)
@@ -223,13 +218,6 @@ private:
        ScriptOptional getScript(const std::string &scriptName) const;
        ScriptOptional getMigrationScript(int db_version) const;
 
-       void createTable(
-               const char *create_cmd,
-               const char *table_name);
-
-       void createView(
-               const char *create_cmd);
-
        class SchemaInfo {
        public:
                explicit SchemaInfo(SqlConnection *connection) : m_connection(connection) {}