diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/osx/salinst.cxx | 10 | ||||
-rw-r--r-- | vcl/unx/generic/gdi/x11windowprovider.cxx | 16 | ||||
-rw-r--r-- | vcl/win/app/saldata.cxx | 9 |
3 files changed, 0 insertions, 35 deletions
diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx index 8cdce3ffc4f5..36e13e23c41b 100644 --- a/vcl/osx/salinst.cxx +++ b/vcl/osx/salinst.cxx @@ -1080,15 +1080,5 @@ NSImage* CreateNSImage( const Image& rImage ) return pImage; } -namespace vcl -{ - -bool IsWindowSystemAvailable() -{ - // Yes I know the parens are not needed. I like them in cases like this. So sue me. - return ([NSScreen screens] != nil && [[NSScreen screens] count] > 0); -} - -} // namespace vcl /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/unx/generic/gdi/x11windowprovider.cxx b/vcl/unx/generic/gdi/x11windowprovider.cxx index 4f507c3911e0..5f7d289196ec 100644 --- a/vcl/unx/generic/gdi/x11windowprovider.cxx +++ b/vcl/unx/generic/gdi/x11windowprovider.cxx @@ -68,21 +68,5 @@ Display *OpenX11Display(OString& rDisplay) return pDisp; } -namespace vcl -{ - -bool IsWindowSystemAvailable() -{ - Display *pDisp; - OString aDisplay; - - pDisp = OpenX11Display(aDisplay); - if (pDisp) - XCloseDisplay(pDisp); - - return (pDisp != nullptr); -} - -} // namespace vcl /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/win/app/saldata.cxx b/vcl/win/app/saldata.cxx index 18256ee8ccd7..2a04b3318791 100644 --- a/vcl/win/app/saldata.cxx +++ b/vcl/win/app/saldata.cxx @@ -74,15 +74,6 @@ int ImplSalWICompareAscii( const wchar_t* pStr1, const char* pStr2 ) return nRet; } -namespace vcl -{ - -bool IsWindowSystemAvailable() -{ - return true; // FIXME: we want this to return false if logged in - // to some Cygwin ssh session for instance -} -} // namespace vcl /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |