From c4cd079b8f613084a99a83b95c3968b65cbd8900 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 22 Sep 2016 15:08:42 +0200 Subject: loplugin:unusedmethods in sc..vcl Change-Id: I70fcf95dfd3db05b4fd6e5cee37866f673d3afa8 Reviewed-on: https://gerrit.libreoffice.org/29183 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- sdext/source/pdfimport/pdfparse/pdfentries.cxx | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'sdext/source/pdfimport/pdfparse/pdfentries.cxx') diff --git a/sdext/source/pdfimport/pdfparse/pdfentries.cxx b/sdext/source/pdfimport/pdfparse/pdfentries.cxx index 01e9893f989d..237609ef76fd 100644 --- a/sdext/source/pdfimport/pdfparse/pdfentries.cxx +++ b/sdext/source/pdfimport/pdfparse/pdfentries.cxx @@ -1262,23 +1262,6 @@ bool PDFFile::setupDecryptionData( const OString& rPwd ) const return bValid; } -OUString PDFFile::getDecryptionKey() const -{ - OUStringBuffer aBuf( ENCRYPTION_KEY_LEN * 2 ); - if( impl_getData()->m_bIsEncrypted ) - { - for( sal_uInt32 i = 0; i < m_pData->m_nKeyLength; i++ ) - { - static const sal_Unicode pHexTab[16] = { '0', '1', '2', '3', '4', '5', '6', '7', - '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }; - aBuf.append( pHexTab[(m_pData->m_aDecryptionKey[i] >> 4) & 0x0f] ); - aBuf.append( pHexTab[(m_pData->m_aDecryptionKey[i] & 0x0f)] ); - } - - } - return aBuf.makeStringAndClear(); -} - PDFFileImplData* PDFFile::impl_getData() const { if( m_pData ) -- cgit v1.2.3