diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-01 14:20:31 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-02 06:38:20 +0000 |
commit | 837f171810a95a1d87907dd08d67e969276f0559 (patch) | |
tree | 6891aa9774c63b759b29d365e0d141f5d7bf3a8c /vcl/unx/x11 | |
parent | 01fd60b8fa614f5911d96bb34b40c62ebe1c20fb (diff) |
loplugin:unusedmethods in vcl
Change-Id: Ib404310761fd555b033ab6594ba8636d37f23463
Reviewed-on: https://gerrit.libreoffice.org/19074
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/unx/x11')
-rw-r--r-- | vcl/unx/x11/x11sys.cxx | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/vcl/unx/x11/x11sys.cxx b/vcl/unx/x11/x11sys.cxx index fbb625a6e25e..31fd0084abab 100644 --- a/vcl/unx/x11/x11sys.cxx +++ b/vcl/unx/x11/x11sys.cxx @@ -85,47 +85,6 @@ Rectangle X11SalSystem::GetDisplayScreenPosSizePixel( unsigned int nScreen ) return aRet; } -OUString X11SalSystem::GetDisplayScreenName( unsigned int nScreen ) -{ - OUString aScreenName; - SalDisplay* pSalDisp = vcl_sal::getSalDisplay(GetGenericData()); - if( pSalDisp->IsXinerama() ) - { - const std::vector< Rectangle >& rScreens = pSalDisp->GetXineramaScreens(); - if( nScreen >= rScreens.size() ) - nScreen = 0; - OUStringBuffer aBuf( 256 ); - aBuf.append( OStringToOUString( OString( DisplayString( pSalDisp->GetDisplay() ) ), osl_getThreadTextEncoding() ) ); - aBuf.append( " [" ); - aBuf.append( static_cast<sal_Int32>(nScreen) ); - aBuf.append( ']' ); - aScreenName = aBuf.makeStringAndClear(); - } - else - { - if( nScreen >= static_cast<unsigned int>(pSalDisp->GetXScreenCount()) ) - nScreen = 0; - OUStringBuffer aBuf( 256 ); - aBuf.append( OStringToOUString( OString( DisplayString( pSalDisp->GetDisplay() ) ), osl_getThreadTextEncoding() ) ); - // search backwards for ':' - int nPos = aBuf.getLength(); - if( nPos > 0 ) - nPos--; - while( nPos > 0 && aBuf[nPos] != ':' ) - nPos--; - // search forward to '.' - while( nPos < aBuf.getLength() && aBuf[nPos] != '.' ) - nPos++; - if( nPos < aBuf.getLength() ) - aBuf.setLength( nPos+1 ); - else - aBuf.append( '.' ); - aBuf.append( static_cast<sal_Int32>(nScreen) ); - aScreenName = aBuf.makeStringAndClear(); - } - return aScreenName; -} - int X11SalSystem::ShowNativeDialog( const OUString& rTitle, const OUString& rMessage, const std::list< OUString >& rButtons, int nDefButton ) { int nRet = -1; |