summaryrefslogtreecommitdiffstats
path: root/xmlsecurity
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-12-14 10:13:29 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-12-14 14:23:33 +0100
commit1390c91c7584a89298906849cdabae131f8a6191 (patch)
treeca28801ff6f9945e9b8b134d1dcbd5edcbb12f74 /xmlsecurity
parentFix memleak (diff)
downloadcore-1390c91c7584a89298906849cdabae131f8a6191.tar.gz
core-1390c91c7584a89298906849cdabae131f8a6191.zip
[API CHANGE] offapi: remove unused css.security.SerialNumberAdapter
This is mostly just the offapi/ part, more C++ code can be removed in xmlsecurity/ after this. It seems to be unlikely that this non-published service was used by 3rd-party code, since it was specific to other xmlsecurity/ code, not generic functionality that could be useful in other contexts. Change-Id: I0d798577a42445e65a4c5178fcb4464ea03bc56e Reviewed-on: https://gerrit.libreoffice.org/46442 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/xmlsec/serialnumberadapter.cxx12
-rw-r--r--xmlsecurity/util/xsec_xmlsec.component3
-rw-r--r--xmlsecurity/util/xsec_xmlsec.windows.component3
3 files changed, 1 insertions, 17 deletions
diff --git a/xmlsecurity/source/xmlsec/serialnumberadapter.cxx b/xmlsecurity/source/xmlsec/serialnumberadapter.cxx
index ea1c2d6f263d..c00803deb16c 100644
--- a/xmlsecurity/source/xmlsec/serialnumberadapter.cxx
+++ b/xmlsecurity/source/xmlsec/serialnumberadapter.cxx
@@ -20,7 +20,6 @@
#include <sal/config.h>
#include <com/sun/star/lang/XServiceInfo.hpp>
-#include <com/sun/star/security/XSerialNumberAdapter.hpp>
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/uno/RuntimeException.hpp>
#include <com/sun/star/uno/Sequence.hxx>
@@ -38,8 +37,7 @@
namespace {
class Service:
- public cppu::WeakImplHelper<
- css::lang::XServiceInfo, css::security::XSerialNumberAdapter >
+ public cppu::WeakImplHelper<css::lang::XServiceInfo>
{
public:
Service() {}
@@ -57,14 +55,6 @@ private:
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
{ return xml_security::serial_number_adapter::serviceNames(); }
-
- virtual OUString SAL_CALL toString(
- css::uno::Sequence< sal_Int8 > const & SerialNumber) override
- { return xmlsecurity::bigIntegerToNumericString(SerialNumber); }
-
- virtual css::uno::Sequence< sal_Int8 > SAL_CALL toSequence(
- OUString const & SerialNumber) override
- { return xmlsecurity::numericStringToBigInteger(SerialNumber); }
};
}
diff --git a/xmlsecurity/util/xsec_xmlsec.component b/xmlsecurity/util/xsec_xmlsec.component
index d47ceef0b8d5..3b6df511fed5 100644
--- a/xmlsecurity/util/xsec_xmlsec.component
+++ b/xmlsecurity/util/xsec_xmlsec.component
@@ -19,9 +19,6 @@
<component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@"
prefix="xsec_xmlsec" xmlns="http://openoffice.org/2010/uno-components">
- <implementation name="com.sun.star.comp.security.SerialNumberAdapter">
- <service name="com.sun.star.security.SerialNumberAdapter"/>
- </implementation>
<implementation name="com.sun.star.xml.security.bridge.xmlsec.SEInitializer_NssImpl">
<service name="com.sun.star.xml.crypto.NSSInitializer"/>
<service name="com.sun.star.xml.crypto.SEInitializer"/>
diff --git a/xmlsecurity/util/xsec_xmlsec.windows.component b/xmlsecurity/util/xsec_xmlsec.windows.component
index 1e8aa5fbd3c1..fc7df19b1b9e 100644
--- a/xmlsecurity/util/xsec_xmlsec.windows.component
+++ b/xmlsecurity/util/xsec_xmlsec.windows.component
@@ -19,9 +19,6 @@
<component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@"
prefix="xsec_xmlsec" xmlns="http://openoffice.org/2010/uno-components">
- <implementation name="com.sun.star.comp.security.SerialNumberAdapter">
- <service name="com.sun.star.security.SerialNumberAdapter"/>
- </implementation>
<implementation name="com.sun.star.xml.security.bridge.xmlsec.NSSInitializer_NssImpl">
<service name="com.sun.star.xml.crypto.NSSInitializer"/>
</implementation>