diff options
author | Alexander Bergmann <myaddons@gmx.de> | 2012-02-10 14:20:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-10 14:20:52 +0000 |
commit | 99b2adf721fa424e0a02c4458774b8829cd33bf2 (patch) | |
tree | eb577fbc332ce9767c4688a3cca639e456a287ed /connectivity | |
parent | 740cf4a5903dd7aaad4e60ab71a43b062e1d50d8 (diff) |
Removed unused code
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_tools.cxx | 14 | ||||
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_tools.hxx | 2 |
2 files changed, 0 insertions, 16 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_tools.cxx b/connectivity/source/drivers/postgresql/pq_tools.cxx index d54d6d33803f..00c5a0c8cc48 100644 --- a/connectivity/source/drivers/postgresql/pq_tools.cxx +++ b/connectivity/source/drivers/postgresql/pq_tools.cxx @@ -367,20 +367,6 @@ void disposeNoThrow( const com::sun::star::uno::Reference< com::sun::star::uno:: } -void rollbackNoThrow( const com::sun::star::uno::Reference< com::sun::star::sdbc::XConnection > & r ) -{ - try - { - Reference< XStatement > stmt = r->createStatement(); - stmt->executeUpdate( getStatics().ROLLBACK ); - - } - catch( SQLException & ) - { - // ignore this - } -} - Reference< XConnection > extractConnectionFromStatement( const Reference< XInterface > & stmt ) { Reference< XConnection > ret; diff --git a/connectivity/source/drivers/postgresql/pq_tools.hxx b/connectivity/source/drivers/postgresql/pq_tools.hxx index 2f6880297ebc..152d0055054a 100644 --- a/connectivity/source/drivers/postgresql/pq_tools.hxx +++ b/connectivity/source/drivers/postgresql/pq_tools.hxx @@ -125,8 +125,6 @@ sal_Bool extractBoolProperty( void disposeNoThrow( const com::sun::star::uno::Reference< com::sun::star::uno::XInterface > & r ); void disposeObject( const com::sun::star::uno::Reference< com::sun::star::uno::XInterface > & r ); -void rollbackNoThrow( const com::sun::star::uno::Reference< com::sun::star::sdbc::XConnection > & r ); - ::rtl::OUString extractTableFromInsert( const rtl::OUString & sql ); ::rtl::OString extractSingleTableFromSelect( const OStringVector &vec ); |