summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2010-03-02 19:50:45 +0100
committerIvo Hinkelmann <ihi@openoffice.org>2010-03-02 19:50:45 +0100
commit2ce74bf6335641dd4829b1d17e6510f8facbf231 (patch)
treecb2a54251c1e7fde1eccd2388cfa3ac53033378e /xmlhelp
parente2e5891e9b75f6271a935d9a164c53c5f63fff72 (diff)
parent5b2cfb2dca495afb451915b5f0f9516c0b60a92e (diff)
CWS-TOOLING: integrate CWS jl145
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/cxxhelp/provider/databases.cxx21
1 files changed, 0 insertions, 21 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx
index 99613cfebf57..a2c70ca45b71 100644
--- a/xmlhelp/source/cxxhelp/provider/databases.cxx
+++ b/xmlhelp/source/cxxhelp/provider/databases.cxx
@@ -134,18 +134,6 @@ rtl::OUString Databases::expandURL( const rtl::OUString& aURL, Reference< uno::X
return aRetURL;
}
-
-// Hold Packages to improve performance (#i106100)
-// The PackageManager implementation seems to completely throw away all cached data
-// as soon as the last reference to a XPackage dies. Maybe this should be changed.
-struct ImplPackageSequenceHolder
-{
- Sequence< Reference< deployment::XPackage > > m_aUserPackagesSeq;
- Sequence< Reference< deployment::XPackage > > m_aSharedPackagesSeq;
-};
-
-static ImplPackageSequenceHolder* GpPackageSequenceHolder = NULL;
-
Databases::Databases( sal_Bool showBasic,
const rtl::OUString& instPath,
const com::sun::star::uno::Sequence< rtl::OUString >& imagesZipPaths,
@@ -191,7 +179,6 @@ Databases::Databases( sal_Bool showBasic,
m_xSFA = Reference< ucb::XSimpleFileAccess >(
m_xSMgr->createInstanceWithContext( rtl::OUString::createFromAscii( "com.sun.star.ucb.SimpleFileAccess" ),
m_xContext ), UNO_QUERY_THROW );
- GpPackageSequenceHolder = new ImplPackageSequenceHolder();
}
Databases::~Databases()
@@ -239,8 +226,6 @@ Databases::~Databases()
++it;
}
}
-
- delete GpPackageSequenceHolder;
}
static bool impl_getZipFile(
@@ -1562,9 +1547,6 @@ Reference< deployment::XPackage > ExtensionIteratorBase::implGetNextUserHelpPack
thePackageManagerFactory::get( m_xContext )->getPackageManager( rtl::OUString::createFromAscii("user") );
m_aUserPackagesSeq = xUserManager->getDeployedPackages
( Reference< task::XAbortChannel >(), Reference< ucb::XCommandEnvironment >() );
- if( GpPackageSequenceHolder != NULL )
- GpPackageSequenceHolder->m_aUserPackagesSeq = m_aUserPackagesSeq;
-
m_bUserPackagesLoaded = true;
}
@@ -1594,9 +1576,6 @@ Reference< deployment::XPackage > ExtensionIteratorBase::implGetNextSharedHelpPa
thePackageManagerFactory::get( m_xContext )->getPackageManager( rtl::OUString::createFromAscii("shared") );
m_aSharedPackagesSeq = xSharedManager->getDeployedPackages
( Reference< task::XAbortChannel >(), Reference< ucb::XCommandEnvironment >() );
- if( GpPackageSequenceHolder != NULL )
- GpPackageSequenceHolder->m_aSharedPackagesSeq = m_aSharedPackagesSeq;
-
m_bSharedPackagesLoaded = true;
}