summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-16 11:54:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-18 13:00:38 +0200
commit9fa32e5dce345dea17129587c401c03520fb398b (patch)
treee33696647bcce308420d45b4d25246201f0a27a5 /shell
parenta0c15b39cb30736e04564420f55c50fefb51e41a (diff)
loplugin:unusedfields in sfx2
and fix leak of HelpListener_Impl in SfxHelpWindow_Impl Change-Id: I7450be10c8deaf63b7c7f1f4359b4eaf0083bdd4 Reviewed-on: https://gerrit.libreoffice.org/54451 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'shell')
-rw-r--r--shell/source/unix/exec/shellexec.cxx15
-rw-r--r--shell/source/unix/exec/shellexec.hxx1
2 files changed, 0 insertions, 16 deletions
diff --git a/shell/source/unix/exec/shellexec.cxx b/shell/source/unix/exec/shellexec.cxx
index d12b5778ba3d..34861674de96 100644
--- a/shell/source/unix/exec/shellexec.cxx
+++ b/shell/source/unix/exec/shellexec.cxx
@@ -77,21 +77,6 @@ ShellExec::ShellExec( const Reference< XComponentContext >& xContext ) :
WeakImplHelper< XSystemShellExecute, XServiceInfo >(),
m_xContext(xContext)
{
- try {
- Reference< XCurrentContext > xCurrentContext(getCurrentContext());
-
- if (xCurrentContext.is())
- {
- Any aValue = xCurrentContext->getValueByName( "system.desktop-environment" );
-
- OUString aDesktopEnvironment;
- if (aValue >>= aDesktopEnvironment)
- {
- m_aDesktopEnvironment = OUStringToOString(aDesktopEnvironment, RTL_TEXTENCODING_ASCII_US);
- }
- }
- } catch (const RuntimeException &) {
- }
}
void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aParameter, sal_Int32 nFlags )
diff --git a/shell/source/unix/exec/shellexec.hxx b/shell/source/unix/exec/shellexec.hxx
index 38ebf8ea94c0..22b03ad76d3d 100644
--- a/shell/source/unix/exec/shellexec.hxx
+++ b/shell/source/unix/exec/shellexec.hxx
@@ -32,7 +32,6 @@
class ShellExec : public ::cppu::WeakImplHelper< css::system::XSystemShellExecute, css::lang::XServiceInfo >
{
- OString m_aDesktopEnvironment;
css::uno::Reference< css::uno::XComponentContext > m_xContext;
public: