summaryrefslogtreecommitdiff
path: root/sdext/source/presenter/PresenterComponent.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sdext/source/presenter/PresenterComponent.cxx')
-rw-r--r--sdext/source/presenter/PresenterComponent.cxx39
1 files changed, 0 insertions, 39 deletions
diff --git a/sdext/source/presenter/PresenterComponent.cxx b/sdext/source/presenter/PresenterComponent.cxx
index cb4d049e6216..de18f450ea0e 100644
--- a/sdext/source/presenter/PresenterComponent.cxx
+++ b/sdext/source/presenter/PresenterComponent.cxx
@@ -17,13 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include "PresenterComponent.hxx"
#include "cppuhelper/factory.hxx"
#include "cppuhelper/implementationentry.hxx"
-#include <com/sun/star/deployment/DeploymentException.hpp>
-#include <com/sun/star/deployment/XPackageInformationProvider.hpp>
-#include "PresenterExtensionIdentifier.hxx"
#include "PresenterProtocolHandler.hxx"
#include "PresenterScreen.hxx"
@@ -35,41 +31,6 @@ using ::rtl::OUString;
namespace sdext { namespace presenter {
-::rtl::OUString PresenterComponent::GetBasePath (
- const Reference<XComponentContext>& rxComponentContext)
-{
- return GetBasePath(rxComponentContext, gsExtensionIdentifier);
-}
-
-::rtl::OUString PresenterComponent::GetBasePath (
- const Reference<XComponentContext>& rxComponentContext,
- const OUString& rsExtensionIdentifier)
-{
- static ::rtl::OUString sBasePath;
- if (sBasePath.isEmpty())
- {
- // Determine the base path of the bitmaps.
- Reference<deployment::XPackageInformationProvider> xInformationProvider (
- rxComponentContext->getValueByName(
- OUString(RTL_CONSTASCII_USTRINGPARAM(
- "/singletons/com.sun.star.deployment.PackageInformationProvider"))),
- UNO_QUERY);
- if (xInformationProvider.is())
- {
- try
- {
- sBasePath = xInformationProvider->getPackageLocation(rsExtensionIdentifier)
- + OUString(RTL_CONSTASCII_USTRINGPARAM("/"));
- }
- catch (const deployment::DeploymentException&)
- {
- }
- }
- }
-
- return sBasePath;
-}
-
rtl_StandardModuleCount g_moduleCount = MODULE_COUNT_INIT;
static struct ImplementationEntry gServiceEntries[] =