diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2013-05-19 07:34:32 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2013-05-19 14:05:18 +0200 |
commit | db6ab9f8f11107b7c09c3a5139ee4b3d4afd2f80 (patch) | |
tree | bf1b4efc3e729ab56ea62e682b3e21f82885eebc | |
parent | 7ac4c9dcc928d040c5a446efc256aa392f4bee2c (diff) |
remove unused & suspicious method
calls m_pTable->seekRow with m_nRowPos instead of m_nFilePos...
Change-Id: Ibf9b4da3dffdd75402deb9e7a371a312e0464613
-rw-r--r-- | connectivity/source/drivers/file/FResultSet.cxx | 62 | ||||
-rw-r--r-- | connectivity/source/inc/file/FResultSet.hxx | 2 |
2 files changed, 32 insertions, 32 deletions
diff --git a/connectivity/source/drivers/file/FResultSet.cxx b/connectivity/source/drivers/file/FResultSet.cxx index fbd87a32406f..be363b3163df 100644 --- a/connectivity/source/drivers/file/FResultSet.cxx +++ b/connectivity/source/drivers/file/FResultSet.cxx @@ -546,37 +546,37 @@ sal_Bool SAL_CALL OResultSet::isBeforeFirst( ) throw(SQLException, RuntimeExcep return m_nRowPos == -1; } // ------------------------------------------------------------------------- -sal_Bool OResultSet::evaluate() -{ - RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "file", "Ocke.Janssen@sun.com", "OResultSet::evaluate" ); - OSL_ENSURE(m_pSQLAnalyzer,"OResultSet::evaluate: Analyzer isn't set!"); - sal_Bool bRet = sal_True; - while(!m_pSQLAnalyzer->evaluateRestriction()) - { - if(m_pEvaluationKeySet) - { - if(m_aEvaluateIter == m_pEvaluationKeySet->end()) - return sal_False; - bRet = m_pTable->seekRow(IResultSetHelper::BOOKMARK,(*m_aEvaluateIter),m_nRowPos); - ++m_aEvaluateIter; - } - else - bRet = m_pTable->seekRow(IResultSetHelper::NEXT,1,m_nRowPos); - if(bRet) - { - if(m_pEvaluationKeySet) - { - bRet = m_pTable->fetchRow(m_aEvaluateRow,*(m_pTable->getTableColumns()),sal_True,sal_True); - evaluate(); - - } - else - bRet = m_pTable->fetchRow(m_aRow,*m_xColumns,sal_False,sal_True); - } - } - - return bRet; -} +// sal_Bool OResultSet::evaluate() +// { +// RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "file", "Ocke.Janssen@sun.com", "OResultSet::evaluate" ); +// OSL_ENSURE(m_pSQLAnalyzer,"OResultSet::evaluate: Analyzer isn't set!"); +// sal_Bool bRet = sal_True; +// while(!m_pSQLAnalyzer->evaluateRestriction()) +// { +// if(m_pEvaluationKeySet) +// { +// if(m_aEvaluateIter == m_pEvaluationKeySet->end()) +// return sal_False; +// bRet = m_pTable->seekRow(IResultSetHelper::BOOKMARK,(*m_aEvaluateIter),m_nRowPos); +// ++m_aEvaluateIter; +// } +// else +// bRet = m_pTable->seekRow(IResultSetHelper::NEXT,1,m_nRowPos); +// if(bRet) +// { +// if(m_pEvaluationKeySet) +// { +// bRet = m_pTable->fetchRow(m_aEvaluateRow,*(m_pTable->getTableColumns()),sal_True,sal_True); +// evaluate(); + +// } +// else +// bRet = m_pTable->fetchRow(m_aRow,*m_xColumns,sal_False,sal_True); +// } +// } + +// return bRet; +// } // ------------------------------------------------------------------------- sal_Bool SAL_CALL OResultSet::next( ) throw(SQLException, RuntimeException) diff --git a/connectivity/source/inc/file/FResultSet.hxx b/connectivity/source/inc/file/FResultSet.hxx index 738c2e137fec..c0ae89dfd640 100644 --- a/connectivity/source/inc/file/FResultSet.hxx +++ b/connectivity/source/inc/file/FResultSet.hxx @@ -134,7 +134,7 @@ namespace connectivity void initializeRow(OValueRefRow& _rRow,sal_Int32 _nColumnCount); void construct(); - sal_Bool evaluate(); + //sal_Bool evaluate(); sal_Bool ExecuteRow(IResultSetHelper::Movement eFirstCursorPosition, sal_Int32 nOffset = 1, |