removed bool _executed member (not used)

This commit is contained in:
Aleksandar Fabijanic
2007-09-26 21:48:02 +00:00
parent f7a8963ad7
commit 0dfd7bec3b
2 changed files with 2 additions and 7 deletions

View File

@@ -174,7 +174,6 @@ protected:
private: private:
typedef Poco::SharedPtr<StatementImpl> StatementImplPtr; typedef Poco::SharedPtr<StatementImpl> StatementImplPtr;
bool _executed;
StatementImplPtr _ptr; StatementImplPtr _ptr;
}; };

View File

@@ -48,22 +48,19 @@ namespace Data {
Statement::Statement(StatementImpl* pImpl): Statement::Statement(StatementImpl* pImpl):
_executed(false),
_ptr(pImpl) _ptr(pImpl)
{ {
poco_check_ptr (pImpl); poco_check_ptr (pImpl);
} }
Statement::Statement(Session& session): Statement::Statement(Session& session)
_executed(false)
{ {
reset(session); reset(session);
} }
Statement::Statement(const Statement& stmt): Statement::Statement(const Statement& stmt):
_executed(stmt._executed),
_ptr(stmt._ptr) _ptr(stmt._ptr)
{ {
} }
@@ -85,7 +82,6 @@ Statement& Statement::operator = (const Statement& stmt)
void Statement::swap(Statement& other) void Statement::swap(Statement& other)
{ {
std::swap(_ptr, other._ptr); std::swap(_ptr, other._ptr);
std::swap(_executed, other._executed);
} }
@@ -95,7 +91,7 @@ Poco::UInt32 Statement::execute()
{ {
_ptr->reset(); _ptr->reset();
} }
_executed = true;
return _ptr->execute(); return _ptr->execute();
} }