diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2020-10-06 11:20:08 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-10-06 12:49:51 +0200 |
commit | 97c03dfe6c946236c3b385879f3bb2594dc4602f (patch) | |
tree | 31cd6411dc8c1e9be700609e870b50fa2fa8bb46 /oox | |
parent | 084a230a15e22abada48f73d6e2efc66d208f933 (diff) |
Drop unused code
... a leftover in commit 3187eeab10df77a6c0dd6397be993a68276d7141,
copypasted in commit 4f4a668e04bdd68655a0f574027f486cea953857.
Change-Id: I7a634ba432cb4736ec85a420b0f77288cd1e0802
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104004
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/ole/vbaexport.cxx | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/oox/source/ole/vbaexport.cxx b/oox/source/ole/vbaexport.cxx index 7833beae83cd..b699da60697a 100644 --- a/oox/source/ole/vbaexport.cxx +++ b/oox/source/ole/vbaexport.cxx @@ -762,20 +762,13 @@ void exportDirStream(SvStream& rStrm, const css::uno::Reference<css::container:: aDirStream.WriteUInt16(0x0010); // terminator aDirStream.WriteUInt32(0x00000000); // reserved - aDirStream.Seek(0); - #if VBA_EXPORT_DEBUG const OUString aDirFileName("/tmp/vba_dir_out.bin"); SvFileStream aDirStreamDebug(aDirFileName, StreamMode::READWRITE); - - aDirStreamDebug.WriteStream(aDirStream); aDirStream.Seek(0); + aDirStreamDebug.WriteStream(aDirStream); #endif - // the stream for the compression - SvMemoryStream aMemoryStream(4096, 4096); - aMemoryStream.WriteStream(aDirStream); - VBACompression aCompression(rStrm, aDirStream); aCompression.write(); } @@ -807,19 +800,14 @@ void exportModuleStream(SvStream& rStrm, const OUString& rSourceCode, const OUSt aSourceCode = aSourceCode.replaceAt(nPos, nEndPos - nPos+1, ""); aSourceCode = aSourceCode.replaceAll("\n", "\r\n"); exportString(aModuleStream, aSourceCode); - aModuleStream.Seek(0); #if VBA_EXPORT_DEBUG OUString aModuleFileName("/tmp/vba_" + aElementName + "_out.bin"); SvFileStream aModuleStreamDebug(aModuleFileName, StreamMode::READWRITE); - aModuleStreamDebug.WriteStream(aModuleStream); aModuleStream.Seek(0); + aModuleStreamDebug.WriteStream(aModuleStream); #endif - // the stream for the compression - SvMemoryStream aMemoryStream(4096, 4096); - aMemoryStream.WriteStream(aModuleStream); - VBACompression aCompression(rStrm, aModuleStream); aCompression.write(); } |