summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
Diffstat (limited to 'basic')
-rw-r--r--basic/source/basmgr/basmgr.cxx25
1 files changed, 0 insertions, 25 deletions
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx
index 514b4743da31..4aa4f1b103f1 100644
--- a/basic/source/basmgr/basmgr.cxx
+++ b/basic/source/basmgr/basmgr.cxx
@@ -106,22 +106,16 @@ struct BasicManagerImpl
{
LibraryContainerInfo maContainerInfo;
- // Save stream data
- SvMemoryStream* mpManagerStream;
- std::vector<std::unique_ptr<SvMemoryStream>> maLibStreams;
-
std::vector<std::unique_ptr<BasicLibInfo>> aLibs;
OUString aBasicLibPath;
BasicManagerImpl()
- : mpManagerStream( nullptr )
{}
~BasicManagerImpl();
};
BasicManagerImpl::~BasicManagerImpl()
{
- delete mpManagerStream;
}
@@ -520,25 +514,6 @@ BasicManager::BasicManager( SotStorage& rStorage, const OUString& rBaseURL, Star
// Modified through insert
pStdLib->SetModified( false );
}
-
- // #91626 Save all stream data to save it unmodified if basic isn't modified
- // in an 6.0+ office. So also the old basic dialogs can be saved.
- tools::SvRef<SotStorageStream> xManagerStream = rStorage.OpenSotStream( szManagerStream, eStreamReadMode );
- mpImpl->mpManagerStream = new SvMemoryStream();
- xManagerStream->ReadStream( *mpImpl->mpManagerStream );
-
- tools::SvRef<SotStorage> xBasicStorage = rStorage.OpenSotStorage( szBasicStorage, eStorageReadMode, false );
- if( xBasicStorage.Is() && !xBasicStorage->GetError() )
- {
- sal_uInt16 nLibs = GetLibCount();
- for( sal_uInt16 nL = 0; nL < nLibs; nL++ )
- {
- BasicLibInfo& rInfo = *mpImpl->aLibs[nL];
- tools::SvRef<SotStorageStream> xBasicStream = xBasicStorage->OpenSotStream( rInfo.GetLibName(), eStreamReadMode );
- mpImpl->maLibStreams.push_back(o3tl::make_unique<SvMemoryStream>());
- xBasicStream->ReadStream( *mpImpl->maLibStreams.back() );
- }
- }
}
else
{