summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Funk <juergen.funk_ml@cib.de>2015-12-05 01:37:13 +0100
committerTor Lillqvist <tml@collabora.com>2015-12-06 08:55:56 +0000
commit6ded842ac4a0e06efcfcc312775d25063201eb68 (patch)
treef13b8ecc9aae9190f1be55476f4d0a8e785b5512
parent30d73431ee51ca2ebcca9029bf0af4a0c4dc565c (diff)
unused vcl::IsWindowSystemAvailable
Change-Id: Ie903a6fe3237319661662c0533c23528766ffd08 Reviewed-on: https://gerrit.libreoffice.org/20404 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
-rw-r--r--include/vcl/svapp.hxx7
-rw-r--r--unusedcode.easy1
-rw-r--r--vcl/osx/salinst.cxx10
-rw-r--r--vcl/unx/generic/gdi/x11windowprovider.cxx16
-rw-r--r--vcl/win/app/saldata.cxx9
5 files changed, 0 insertions, 43 deletions
diff --git a/include/vcl/svapp.hxx b/include/vcl/svapp.hxx
index a8b813bee26d..c5b52ca279df 100644
--- a/include/vcl/svapp.hxx
+++ b/include/vcl/svapp.hxx
@@ -1649,13 +1649,6 @@ inline void Application::EndYield()
PostUserEvent( Link<void*,void>() );
}
-namespace vcl
-{
-
-VCL_DLLPUBLIC bool IsWindowSystemAvailable();
-
-}
-
#endif // _APP_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unusedcode.easy b/unusedcode.easy
index 0d1333d8a6d2..44c213db93f0 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -92,7 +92,6 @@ sd::LeftDrawPaneShell::RegisterInterface(SfxModule*)
sd::LeftImpressPaneShell::RegisterInterface(SfxModule*)
std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const, (anonymous namespace)::TemplateId>, std::_Select1st<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> > >::_M_move_data(std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const, (anonymous namespace)::TemplateId>, std::_Select1st<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> > >&, std::integral_constant<bool, true>)
std::__cxx1998::vector<rtl::Reference<oox::xls::(anonymous namespace)::WorkerThread>, std::allocator<rtl::Reference<oox::xls::(anonymous namespace)::WorkerThread> > >::reserve(unsigned long)
-vcl::IsWindowSystemAvailable()
vcl::MapChar(vcl::_TrueTypeFont*, unsigned short, bool)
vcl::Region::IsInside(Rectangle const&) const
vcl::RenderSettings::PushAndApply(OutputDevice&)
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: */