diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-12 20:20:42 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-14 07:35:58 +0000 |
commit | 93c5ac9ff1033492bec1aefcda94c1507cafcccd (patch) | |
tree | e7fe7913ba17e2f0210c07fd5eee21f3ed64241d /unotools | |
parent | 1987a5c7772fafc1e863deeead9081fd747f7713 (diff) |
ReleaseConfigMgr not called by anything
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/inc/unotools/configitem.hxx | 3 | ||||
-rw-r--r-- | unotools/source/config/configitem.cxx | 17 |
2 files changed, 0 insertions, 20 deletions
diff --git a/unotools/inc/unotools/configitem.hxx b/unotools/inc/unotools/configitem.hxx index fe3a0e991ad4..7910b68af5dd 100644 --- a/unotools/inc/unotools/configitem.hxx +++ b/unotools/inc/unotools/configitem.hxx @@ -183,9 +183,6 @@ namespace utl PropertyChangeListener if the sub tree broadcasts changes. */ virtual void Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames)=0; - /** is called from the ConfigManager if it is destroyed before the ConfigItem. */ - void ReleaseConfigMgr(); - const rtl::OUString& GetSubTreeName() const {return sSubTree;} sal_Bool IsModified() const; diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx index a0200e6b4d09..cb06d05cafec 100644 --- a/unotools/source/config/configitem.cxx +++ b/unotools/source/config/configitem.cxx @@ -250,23 +250,6 @@ ConfigItem::~ConfigItem() delete pImpl; } -void ConfigItem::ReleaseConfigMgr() -{ - Reference<XHierarchicalNameAccess> xHierarchyAccess = GetTree(); - if(xHierarchyAccess.is()) - { - try - { - Reference<XChangesBatch> xBatch(xHierarchyAccess, UNO_QUERY); - xBatch->commitChanges(); - } - CATCH_INFO("Exception from commitChanges(): ") - } - RemoveChangesListener(); - OSL_ENSURE(pImpl->pManager, "ConfigManager already released"); - pImpl->pManager = 0; -} - void ConfigItem::CallNotify( const com::sun::star::uno::Sequence<OUString>& rPropertyNames ) { // the call is forwarded to the virtual Notify() method |