diff options
author | Alexander Bergmann <myaddons@gmx.de> | 2012-02-10 14:20:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-10 14:20:52 +0000 |
commit | 99b2adf721fa424e0a02c4458774b8829cd33bf2 (patch) | |
tree | eb577fbc332ce9767c4688a3cca639e456a287ed /sdext | |
parent | 740cf4a5903dd7aaad4e60ab71a43b062e1d50d8 (diff) |
Removed unused code
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/pdfimport/inc/pdfparse.hxx | 1 | ||||
-rw-r--r-- | sdext/source/pdfimport/pdfparse/pdfparse.cxx | 49 |
2 files changed, 0 insertions, 50 deletions
diff --git a/sdext/source/pdfimport/inc/pdfparse.hxx b/sdext/source/pdfimport/inc/pdfparse.hxx index 1cfd82e9c4cd..8f715e97e290 100644 --- a/sdext/source/pdfimport/inc/pdfparse.hxx +++ b/sdext/source/pdfimport/inc/pdfparse.hxx @@ -304,7 +304,6 @@ class PDFReader ~PDFReader() {} PDFEntry* read( const char* pFileName ); - PDFEntry* read( const char* pBuffer, unsigned int nLen ); }; } // namespace diff --git a/sdext/source/pdfimport/pdfparse/pdfparse.cxx b/sdext/source/pdfimport/pdfparse/pdfparse.cxx index ccd33b430d77..e5cae107695c 100644 --- a/sdext/source/pdfimport/pdfparse/pdfparse.cxx +++ b/sdext/source/pdfimport/pdfparse/pdfparse.cxx @@ -556,55 +556,6 @@ public: } }; -PDFEntry* PDFReader::read( const char* pBuffer, unsigned int nLen ) -{ - PDFGrammar<const char*> aGrammar( pBuffer ); - - try - { - #if OSL_DEBUG_LEVEL > 1 - boost::spirit::parse_info<const char*> aInfo = - #endif - boost::spirit::parse( pBuffer, - pBuffer+nLen, - aGrammar, - boost::spirit::space_p ); - #if OSL_DEBUG_LEVEL > 1 - fprintf( stderr, "parseinfo: stop = %p (buff=%p, offset = %d), hit = %s, full = %s, length = %d\n", - aInfo.stop, pBuffer, aInfo.stop - pBuffer, - aInfo.hit ? "true" : "false", - aInfo.full ? "true" : "false", - (int)aInfo.length ); - #endif - } - catch( const parser_error<const char*, const char*>& rError ) - { - #if OSL_DEBUG_LEVEL > 1 - fprintf( stderr, "parse error: %s at buffer pos %u\nobject stack:\n", - rError.descriptor, rError.where - pBuffer ); - unsigned int nElem = aGrammar.m_aObjectStack.size(); - for( unsigned int i = 0; i < nElem; i++ ) - { - fprintf( stderr, " %s\n", typeid( *(aGrammar.m_aObjectStack[i]) ).name() ); - } - #endif - } - - PDFEntry* pRet = NULL; - unsigned int nEntries = aGrammar.m_aObjectStack.size(); - if( nEntries == 1 ) - { - pRet = aGrammar.m_aObjectStack.back(); - aGrammar.m_aObjectStack.pop_back(); - } - #if OSL_DEBUG_LEVEL > 1 - else if( nEntries > 1 ) - fprintf( stderr, "error got %u stack objects in parse\n", nEntries ); - #endif - - return pRet; -} - PDFEntry* PDFReader::read( const char* pFileName ) { #ifdef WIN32 |