diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-10 17:49:47 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-10 17:49:47 +0100 |
commit | 67f5fa5a23c9678a83eb75534307385475f1d586 (patch) | |
tree | 73dd0e342b2e2905cb9e768e63d82aed87dea17c /vcl/source/app/svapp.cxx | |
parent | dbbfad3dfbee89c13956d3a9b4757c74a4a64cd2 (diff) |
Demote Application::IsHeadlessModeRequested to local hack
Change-Id: I3ae51b8c57e70593153805e5c7c139573c543b5a
Diffstat (limited to 'vcl/source/app/svapp.cxx')
-rw-r--r-- | vcl/source/app/svapp.cxx | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx index 7c4a76d96f18..98b74540dd31 100644 --- a/vcl/source/app/svapp.cxx +++ b/vcl/source/app/svapp.cxx @@ -27,7 +27,6 @@ #include "rtl/tencinfo.h" #include "rtl/instance.hxx" -#include "rtl/process.h" #include "tools/debug.hxx" #include "tools/time.hxx" @@ -1535,19 +1534,6 @@ bool Application::IsHeadlessModeEnabled() return IsDialogCancelEnabled(); } -bool Application::IsHeadlessModeRequested() -{ - sal_uInt32 n = rtl_getAppCommandArgCount(); - for (sal_uInt32 i = 0; i < n; ++i) { - OUString arg; - rtl_getAppCommandArg(i, &arg.pData); - if ( arg == "--headless" || arg == "-headless" ) { - return true; - } - } - return false; -} - static bool bConsoleOnly = false; bool Application::IsConsoleOnly() |