diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-04-03 15:35:37 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-04-03 15:35:37 +0200 |
commit | 4a94fc286fb69676a21392aa2cfdb5a813ceeead (patch) | |
tree | 79c45c4df8684b20712a719a58fcf97e949038d9 /svtools | |
parent | 46cb31f6fdc80d50cbca404a3bc88ecb72ce1b31 (diff) |
clearFieldAssignment only used in AssigmentTransientData
Change-Id: Ic7d11a7ad3c643354e0bb2aaf20bda2c3e41dba6
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/dialogs/addresstemplate.cxx | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx index c59b151e41ee..3a1177e4c27f 100644 --- a/svtools/source/dialogs/addresstemplate.cxx +++ b/svtools/source/dialogs/addresstemplate.cxx @@ -116,8 +116,6 @@ namespace svt /// set the assignment for a given logical field virtual void setFieldAssignment(const OUString& _rLogicalName, const OUString& _rAssignment) = 0; - /// clear the assignment for a given logical field - virtual void clearFieldAssignment(const OUString& _rLogicalName) = 0; virtual void setDatasourceName(const OUString& _rName) = 0; virtual void setCommand(const OUString& _rCommand) = 0; @@ -155,7 +153,6 @@ public: virtual sal_Bool hasFieldAssignment(const OUString& _rLogicalName) SAL_OVERRIDE; virtual OUString getFieldAssignment(const OUString& _rLogicalName) SAL_OVERRIDE; virtual void setFieldAssignment(const OUString& _rLogicalName, const OUString& _rAssignment) SAL_OVERRIDE; - virtual void clearFieldAssignment(const OUString& _rLogicalName) SAL_OVERRIDE; virtual void setDatasourceName(const OUString& _rName) SAL_OVERRIDE; virtual void setCommand(const OUString& _rCommand) SAL_OVERRIDE; @@ -247,14 +244,6 @@ public: } - void AssigmentTransientData::clearFieldAssignment(const OUString& _rLogicalName) - { - MapString2String::iterator aPos = m_aAliases.find( _rLogicalName ); - if ( m_aAliases.end() != aPos ) - m_aAliases.erase( aPos ); - } - - void AssigmentTransientData::setDatasourceName(const OUString&) { OSL_FAIL( "AssigmentTransientData::setDatasourceName: cannot be implemented for transient data!" ); @@ -301,13 +290,15 @@ public: virtual sal_Bool hasFieldAssignment(const OUString& _rLogicalName) SAL_OVERRIDE; virtual OUString getFieldAssignment(const OUString& _rLogicalName) SAL_OVERRIDE; virtual void setFieldAssignment(const OUString& _rLogicalName, const OUString& _rAssignment) SAL_OVERRIDE; - virtual void clearFieldAssignment(const OUString& _rLogicalName) SAL_OVERRIDE; virtual void setDatasourceName(const OUString& _rName) SAL_OVERRIDE; virtual void setCommand(const OUString& _rCommand) SAL_OVERRIDE; virtual void Notify( const com::sun::star::uno::Sequence<OUString>& aPropertyNames) SAL_OVERRIDE; virtual void Commit() SAL_OVERRIDE; + + private: + virtual void clearFieldAssignment(const OUString& _rLogicalName); }; |