summaryrefslogtreecommitdiff
path: root/cppuhelper/source/defaultbootstrap.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cppuhelper/source/defaultbootstrap.cxx')
-rw-r--r--cppuhelper/source/defaultbootstrap.cxx23
1 files changed, 0 insertions, 23 deletions
diff --git a/cppuhelper/source/defaultbootstrap.cxx b/cppuhelper/source/defaultbootstrap.cxx
index 9ff68e1cbae2..bede6b518af0 100644
--- a/cppuhelper/source/defaultbootstrap.cxx
+++ b/cppuhelper/source/defaultbootstrap.cxx
@@ -18,7 +18,6 @@
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/lang/XSingleComponentFactory.hpp>
#include <cppuhelper/bootstrap.hxx>
-#include <cppuhelper/detail/preinit.hxx>
#include <cppuhelper/component_context.hxx>
#include <rtl/bootstrap.hxx>
#include <rtl/ref.hxx>
@@ -108,26 +107,4 @@ cppu::defaultBootstrap_InitialComponentContext()
return defaultBootstrap_InitialComponentContext(getUnoIniUri());
}
-void
-cppu::preInitBootstrap(css::uno::Reference< css::uno::XComponentContext > const & xContext)
-{
- if (!xContext.is())
- throw css::uno::DeploymentException("preInit: XComponentContext is not created");
-
- css::uno::Reference< css::uno::XInterface > xService;
- xContext->getValueByName("/singletons/com.sun.star.lang.theServiceManager") >>= xService;
- if (!xService.is())
- throw css::uno::DeploymentException("preInit: XMultiComponentFactory is not created");
-
- rtl::Reference<cppuhelper::ServiceManager> aService(reinterpret_cast<cppuhelper::ServiceManager*>(xService.get()));
-
- // pre-requisites:
- // In order to load implementations and invoke
- // component factory it is required:
- // 1) defaultBootstrap_InitialComponentContext()
- // 2) comphelper::setProcessServiceFactory(xSFactory);
- // 3) InitVCL()
- aService->loadAllImplementations();
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */