summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2014-09-19 10:49:33 +0200
committerMatúš Kukan <matus.kukan@collabora.com>2014-09-19 13:50:53 +0200
commit879bfcbf84fc7b73b5475d3f02e98184a2065dc5 (patch)
treebd8b6c60dc67e5ea5b77564968f3f17b4da171b0
parent38deb7e53b01e3636b8049ba016f4cb903526ad4 (diff)
Remove unused XFastTokenHandler functions
Change-Id: I0d8072f1194aa837932dcffd6dc6a3761bbdc74e
-rw-r--r--include/oox/core/fasttokenhandler.hxx2
-rw-r--r--offapi/com/sun/star/xml/sax/XFastTokenHandler.idl14
-rw-r--r--oox/source/core/fasttokenhandler.cxx11
-rw-r--r--oox/source/crypto/DocumentDecryption.cxx10
-rw-r--r--sax/qa/cppunit/parser.cxx12
5 files changed, 0 insertions, 49 deletions
diff --git a/include/oox/core/fasttokenhandler.hxx b/include/oox/core/fasttokenhandler.hxx
index 23d207635fec..baf0472d5011 100644
--- a/include/oox/core/fasttokenhandler.hxx
+++ b/include/oox/core/fasttokenhandler.hxx
@@ -51,8 +51,6 @@ public:
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XFastTokenHandler
- virtual sal_Int32 SAL_CALL getToken( const OUString& rIdentifier ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
- virtual OUString SAL_CALL getIdentifier( sal_Int32 nToken ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getUTF8Identifier( sal_Int32 nToken ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual sal_Int32 SAL_CALL getTokenFromUTF8( const ::com::sun::star::uno::Sequence< sal_Int8 >& Identifier ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
diff --git a/offapi/com/sun/star/xml/sax/XFastTokenHandler.idl b/offapi/com/sun/star/xml/sax/XFastTokenHandler.idl
index 52233922b389..4daec302ebdf 100644
--- a/offapi/com/sun/star/xml/sax/XFastTokenHandler.idl
+++ b/offapi/com/sun/star/xml/sax/XFastTokenHandler.idl
@@ -38,20 +38,6 @@ module com { module sun { module star { module xml { module sax {
interface XFastTokenHandler: com::sun::star::uno::XInterface
{
- /** returns a integer token for the given string identifier.
-
- @returns
- a unique integer token for the given String or FastToken::DONTKNOW
- if the identifier is not known to this instance.
- */
- long getToken( [in] string Identifier );
-
-
- /** returns a string identifier for the given integer token.
- */
- string getIdentifier( [in] long Token );
-
-
/** returns a integer token for the given string
@param Identifier
diff --git a/oox/source/core/fasttokenhandler.cxx b/oox/source/core/fasttokenhandler.cxx
index 91fb38a78fe5..3fe24ef52f2d 100644
--- a/oox/source/core/fasttokenhandler.cxx
+++ b/oox/source/core/fasttokenhandler.cxx
@@ -73,17 +73,6 @@ Sequence< OUString > SAL_CALL FastTokenHandler::getSupportedServiceNames() throw
return FastTokenHandler_getSupportedServiceNames();
}
-// XFastTokenHandler
-sal_Int32 FastTokenHandler::getToken( const OUString& rIdentifier ) throw( RuntimeException, std::exception )
-{
- return mrTokenMap.getTokenFromUnicode( rIdentifier );
-}
-
-OUString FastTokenHandler::getIdentifier( sal_Int32 nToken ) throw( RuntimeException, std::exception )
-{
- return mrTokenMap.getUnicodeTokenName( nToken );
-}
-
Sequence< sal_Int8 > FastTokenHandler::getUTF8Identifier( sal_Int32 nToken ) throw( RuntimeException, std::exception )
{
return mrTokenMap.getUtf8TokenName( nToken );
diff --git a/oox/source/crypto/DocumentDecryption.cxx b/oox/source/crypto/DocumentDecryption.cxx
index d792f6b810bf..50a886875c11 100644
--- a/oox/source/crypto/DocumentDecryption.cxx
+++ b/oox/source/crypto/DocumentDecryption.cxx
@@ -47,21 +47,11 @@ vector<sal_uInt8> convertToVector(Sequence<sal_Int8>& input)
class AgileTokenHandler : public cppu::WeakImplHelper1< XFastTokenHandler >
{
public:
- virtual sal_Int32 SAL_CALL getToken( const OUString& /*nIdentifier*/ ) throw (RuntimeException, std::exception) SAL_OVERRIDE
- {
- return FastToken::DONTKNOW;
- }
-
virtual sal_Int32 SAL_CALL getTokenFromUTF8( const Sequence< sal_Int8 >& /*nIdentifier*/ ) throw (RuntimeException, std::exception) SAL_OVERRIDE
{
return FastToken::DONTKNOW;
}
- virtual OUString SAL_CALL getIdentifier( sal_Int32 /*nToken*/ ) throw (RuntimeException, std::exception) SAL_OVERRIDE
- {
- return OUString();
- }
-
virtual Sequence<sal_Int8> SAL_CALL getUTF8Identifier(sal_Int32 /*nToken*/) throw (RuntimeException, std::exception) SAL_OVERRIDE
{
return Sequence<sal_Int8>();
diff --git a/sax/qa/cppunit/parser.cxx b/sax/qa/cppunit/parser.cxx
index 5674b11403e4..5669d0f0bb92 100644
--- a/sax/qa/cppunit/parser.cxx
+++ b/sax/qa/cppunit/parser.cxx
@@ -29,18 +29,6 @@ public:
DummyTokenHandler() {}
virtual ~DummyTokenHandler() {}
- virtual sal_Int32 SAL_CALL getToken( const OUString& )
- throw (uno::RuntimeException, std::exception) SAL_OVERRIDE
- {
- CPPUNIT_ASSERT_MESSAGE( "getToken: unexpected call", false );
- return FastToken::DONTKNOW;
- }
- virtual OUString SAL_CALL getIdentifier( sal_Int32 )
- throw (uno::RuntimeException, std::exception) SAL_OVERRIDE
- {
- CPPUNIT_ASSERT_MESSAGE( "getIdentifier: unexpected call", false );
- return OUString();
- }
virtual sal_Int32 SAL_CALL getTokenFromUTF8( const uno::Sequence<sal_Int8>& )
throw (uno::RuntimeException, std::exception) SAL_OVERRIDE
{