xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx |   29 -----------------
 1 file changed, 29 deletions(-)

New commits:
commit f35ff76607041798823ac985b50ee40d5c670260
Author:     Gabor Kelemen <gabor.kelemen.ext...@allotropia.de>
AuthorDate: Mon Mar 11 09:40:08 2024 +0100
Commit:     Thorsten Behrens <thorsten.behr...@allotropia.de>
CommitDate: Tue Mar 12 18:49:26 2024 +0100

    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.behr...@allotropia.de>

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

Reply via email to