diff options
author | Ingrid Halama <iha@openoffice.org> | 2010-08-19 17:33:47 +0200 |
---|---|---|
committer | Ingrid Halama <iha@openoffice.org> | 2010-08-19 17:33:47 +0200 |
commit | b0d6f054f28472b2d2ebb72fc41b9860ab9708e9 (patch) | |
tree | eb838d9175e67bbef76d9bbe10587b7e43e67163 /chart2/source/controller/dialogs/DialogModel.cxx | |
parent | 5081bdf4974e56a02b049ec1d371313d96433764 (diff) |
chart49: #i113992# removing superfluous code together with a memory leak
Diffstat (limited to 'chart2/source/controller/dialogs/DialogModel.cxx')
-rw-r--r-- | chart2/source/controller/dialogs/DialogModel.cxx | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/chart2/source/controller/dialogs/DialogModel.cxx b/chart2/source/controller/dialogs/DialogModel.cxx index f104045727bb..065e5f975cbc 100644 --- a/chart2/source/controller/dialogs/DialogModel.cxx +++ b/chart2/source/controller/dialogs/DialogModel.cxx @@ -380,7 +380,6 @@ DialogModel::DialogModel( m_xContext( xContext ), m_aTimerTriggeredControllerLock( uno::Reference< frame::XModel >( m_xChartDocument, uno::UNO_QUERY ) ) { - createBackup(); } DialogModel::~DialogModel() @@ -743,20 +742,6 @@ sal_Int32 DialogModel::GetRoleIndexForSorting( const ::rtl::OUString & rInternal // private methods -void DialogModel::createBackup() -{ - OSL_ENSURE( ! m_xBackupChartDocument.is(), "Cloning already cloned model" ); - try - { - Reference< util::XCloneable > xCloneable( m_xChartDocument, uno::UNO_QUERY_THROW ); - m_xBackupChartDocument.set( xCloneable->createClone(), uno::UNO_QUERY_THROW ); - } - catch( uno::Exception & ex ) - { - ASSERT_EXCEPTION( ex ); - } -} - void DialogModel::applyInterpretedData( const InterpretedData & rNewData, const ::std::vector< Reference< XDataSeries > > & rSeriesToReUse, |