From 91abc3cb44b2ee66d96180506f9c8508324e09aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Wed, 13 Jul 2016 18:32:44 +0200 Subject: [PATCH] Remove unused Exception constructor --- include/SQLiteCpp/Exception.h | 9 --------- src/Exception.cpp | 7 ------- 2 files changed, 16 deletions(-) diff --git a/include/SQLiteCpp/Exception.h b/include/SQLiteCpp/Exception.h index 0afbb86..32bfe46 100644 --- a/include/SQLiteCpp/Exception.h +++ b/include/SQLiteCpp/Exception.h @@ -75,15 +75,6 @@ public: */ Exception(sqlite3* apSQLite, int ret); - /** - * @brief Encapsulation of the error message from SQLite3, based on std::runtime_error. - * - * @param[in] apSQLite The SQLite object, to obtain detailed error messages from. - * @param[in] ret Return value from function call that failed. - * @param[in] aErrorMessage String providing more context, added to the SQLite errmsg - */ - Exception(sqlite3* apSQLite, int ret, const std::string &aErrorMessage); - /// Return the result code (if any, otherwise -1). int getErrorCode() const noexcept; // nothrow diff --git a/src/Exception.cpp b/src/Exception.cpp index 7b1a931..9e356c0 100644 --- a/src/Exception.cpp +++ b/src/Exception.cpp @@ -44,13 +44,6 @@ Exception::Exception(sqlite3* apSQLite, int ret) : { } -Exception::Exception(sqlite3* apSQLite, int ret, const std::string &aErrorMessage) : - std::runtime_error(aErrorMessage + ": " + sqlite3_errmsg(apSQLite)), - mErrcode(ret), - mExtendedErrcode(sqlite3_extended_errcode(apSQLite)) -{ -} - // Return the result code (if any, otherwise -1). inline int Exception::getErrorCode() const noexcept // nothrow {