Cleanup unusedcode.easy
This commit removes some unused code from unusedcode.easy Change-Id: I204edb6a29e23af244e7997622c5a9b3f596cb2f Signed-off-by: José Guilherme Vanz <guilherme.sft@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/1052 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
This commit is contained in:
committed by
Tor Lillqvist
parent
661d5a479c
commit
dc157e8a31
@@ -191,12 +191,6 @@ namespace dbtools
|
||||
/** returns the connection the RowSet is currently working with (which is the ActiveConnection property)
|
||||
*/
|
||||
OOO_DLLPUBLIC_DBTOOLS ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> getConnection(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet>& _rxRowSet) throw (::com::sun::star::uno::RuntimeException);
|
||||
OOO_DLLPUBLIC_DBTOOLS ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> getConnection(
|
||||
const ::rtl::OUString& _rsTitleOrPath,
|
||||
const ::rtl::OUString& _rsUser,
|
||||
const ::rtl::OUString& _rsPwd,
|
||||
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& _rxFactory);
|
||||
|
||||
OOO_DLLPUBLIC_DBTOOLS ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> getConnection_withFeedback(
|
||||
const ::rtl::OUString& _rDataSourceName,
|
||||
const ::rtl::OUString& _rUser,
|
||||
|
@@ -343,28 +343,6 @@ Reference< XConnection> getConnection_withFeedback(const ::rtl::OUString& _rData
|
||||
return xReturn;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
Reference< XConnection> getConnection(
|
||||
const ::rtl::OUString& _rsTitleOrPath,
|
||||
const ::rtl::OUString& _rsUser,
|
||||
const ::rtl::OUString& _rsPwd,
|
||||
const Reference< XComponentContext>& _rxContext)
|
||||
{
|
||||
Reference< XConnection > xReturn;
|
||||
try
|
||||
{
|
||||
xReturn = getConnection_allowException(_rsTitleOrPath, _rsUser, _rsPwd, _rxContext);
|
||||
}
|
||||
catch(Exception&)
|
||||
{
|
||||
}
|
||||
|
||||
// TODO: if there were not dozens of places which rely on getConnection not throwing an exception ....
|
||||
// I would change this ...
|
||||
|
||||
return xReturn;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
Reference< XConnection> getConnection(const Reference< XRowSet>& _rxRowSet) throw (RuntimeException)
|
||||
{
|
||||
|
@@ -53,11 +53,6 @@ MQueryHelperResultEntry::~MQueryHelperResultEntry()
|
||||
{
|
||||
}
|
||||
|
||||
void MQueryHelperResultEntry::insert( const rtl::OString &key, rtl::OUString &value )
|
||||
{
|
||||
m_Fields[ key ] = value;
|
||||
}
|
||||
|
||||
rtl::OUString MQueryHelperResultEntry::getValue( const rtl::OString &key ) const
|
||||
{
|
||||
FieldMap::const_iterator iter = m_Fields.find( key );
|
||||
@@ -149,26 +144,6 @@ void MQueryHelper::reset()
|
||||
m_aError.reset();
|
||||
}
|
||||
|
||||
MQueryHelperResultEntry* MQueryHelper::next()
|
||||
{
|
||||
MQueryHelperResultEntry* result;
|
||||
sal_uInt32 index;
|
||||
|
||||
m_aMutex.acquire();
|
||||
index = m_nIndex;
|
||||
m_aMutex.release();
|
||||
|
||||
result = getByIndex( index + 1) ; // Add 1 as Row is numbered from 1 to N
|
||||
|
||||
if ( result ) {
|
||||
m_aMutex.acquire();
|
||||
m_nIndex++;
|
||||
m_aMutex.release();
|
||||
}
|
||||
|
||||
return( result );
|
||||
}
|
||||
|
||||
MQueryHelperResultEntry*
|
||||
MQueryHelper::getByIndex(sal_uInt32 nRow)
|
||||
{
|
||||
|
@@ -155,7 +155,6 @@ namespace connectivity
|
||||
MQueryHelperResultEntry();
|
||||
~MQueryHelperResultEntry();
|
||||
|
||||
void insert( const rtl::OString &key, rtl::OUString &value );
|
||||
rtl::OUString getValue( const rtl::OString &key ) const;
|
||||
void setValue( const rtl::OString &key, const rtl::OUString & rValue);
|
||||
};
|
||||
@@ -193,7 +192,6 @@ namespace connectivity
|
||||
virtual ~MQueryHelper();
|
||||
|
||||
void reset();
|
||||
MQueryHelperResultEntry* next();
|
||||
MQueryHelperResultEntry* getByIndex( sal_uInt32 nRow );
|
||||
sal_Bool isError() const;
|
||||
sal_Bool queryComplete() const;
|
||||
|
Reference in New Issue
Block a user