summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorGabor Kelemen <gabor.kelemen.extern@allotropia.de>2024-03-11 09:40:08 +0100
committerThorsten Behrens <thorsten.behrens@allotropia.de>2024-03-12 18:49:26 +0100
commitf35ff76607041798823ac985b50ee40d5c670260 (patch)
tree376f0145ef75b19ba8ca2ec91203185b0ab9cef9 /xmlsecurity
parente5548dceb9086a6f0c8fa70bce8de6da0be72e40 (diff)
Remove SaveODFItem class
This is effectively unused since: commit d22ab7b444a4e16dc2bd1f7d15fa36a848eaaaed Change-Id: I6f646b7daf845035196fc9dde4ff270b8143d37a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164645 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx29
1 files changed, 0 insertions, 29 deletions
diff --git a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
index ba16a3618e7f..8064a8266988 100644
--- a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
+++ b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
@@ -85,34 +85,6 @@ using namespace css;
namespace
{
- class SaveODFItem: public utl::ConfigItem
- {
- private:
- virtual void ImplCommit() override;
-
- public:
- virtual void Notify( const css::uno::Sequence< OUString >& aPropertyNames ) override;
- SaveODFItem();
- };
-
- void SaveODFItem::ImplCommit() {}
- void SaveODFItem::Notify( const css::uno::Sequence< OUString >& ) {}
-
- SaveODFItem::SaveODFItem(): utl::ConfigItem("Office.Common/Save")
- {
- OUString sDef("ODF/DefaultVersion");
- Sequence< css::uno::Any > aValues = GetProperties( Sequence<OUString>(&sDef,1) );
- if ( aValues.getLength() != 1)
- throw uno::RuntimeException(
- "[xmlsecurity] Could not open property Office.Common/Save/ODF/DefaultVersion",
- nullptr);
-
- sal_Int16 nTmp = 0;
- if ( !(aValues[0] >>= nTmp) )
- throw uno::RuntimeException(
- "[xmlsecurity]SaveODFItem::SaveODFItem(): Wrong Type!",
- nullptr );
- }
#ifdef _WIN32
constexpr std::u16string_view aGUIServers[]
@@ -377,7 +349,6 @@ bool DigitalSignaturesDialog::canAddRemove()
OSL_ASSERT(maSignatureManager.getStore().is());
bool bDoc1_1 = DocumentSignatureHelper::isODFPre_1_2(m_sODFVersion);
- SaveODFItem item;
// see specification
//cvs: specs/www/appwide/security/Electronic_Signatures_and_Security.sxw