mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 12:18:01 +01:00
removed bool _executed member (not used)
This commit is contained in:
@@ -174,7 +174,6 @@ protected:
|
|||||||
private:
|
private:
|
||||||
typedef Poco::SharedPtr<StatementImpl> StatementImplPtr;
|
typedef Poco::SharedPtr<StatementImpl> StatementImplPtr;
|
||||||
|
|
||||||
bool _executed;
|
|
||||||
StatementImplPtr _ptr;
|
StatementImplPtr _ptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user