From 0dfd7bec3b538d189c7ae54a1bf544a1d410e46b Mon Sep 17 00:00:00 2001 From: Aleksandar Fabijanic Date: Wed, 26 Sep 2007 21:48:02 +0000 Subject: [PATCH] removed bool _executed member (not used) --- Data/include/Poco/Data/Statement.h | 1 - Data/src/Statement.cpp | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Data/include/Poco/Data/Statement.h b/Data/include/Poco/Data/Statement.h index 349b7da05..c89c22dfa 100644 --- a/Data/include/Poco/Data/Statement.h +++ b/Data/include/Poco/Data/Statement.h @@ -174,7 +174,6 @@ protected: private: typedef Poco::SharedPtr StatementImplPtr; - bool _executed; StatementImplPtr _ptr; }; diff --git a/Data/src/Statement.cpp b/Data/src/Statement.cpp index ea5989f5c..890426344 100644 --- a/Data/src/Statement.cpp +++ b/Data/src/Statement.cpp @@ -48,22 +48,19 @@ namespace Data { Statement::Statement(StatementImpl* pImpl): - _executed(false), _ptr(pImpl) { poco_check_ptr (pImpl); } -Statement::Statement(Session& session): - _executed(false) +Statement::Statement(Session& session) { reset(session); } Statement::Statement(const Statement& stmt): - _executed(stmt._executed), _ptr(stmt._ptr) { } @@ -85,7 +82,6 @@ Statement& Statement::operator = (const Statement& stmt) void Statement::swap(Statement& other) { std::swap(_ptr, other._ptr); - std::swap(_executed, other._executed); } @@ -95,7 +91,7 @@ Poco::UInt32 Statement::execute() { _ptr->reset(); } - _executed = true; + return _ptr->execute(); }