From ecda52f6b3919950870f3ddb195d34d3baf71168 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 4 Mar 2013 09:22:56 +0000 Subject: callcatcher: unused code Change-Id: I7dcaa6f57815321e108cd7ce284fe145dc0506f2 --- vcl/source/app/brand.cxx | 37 ------------------------------------- vcl/source/app/svapp.cxx | 7 ------- 2 files changed, 44 deletions(-) (limited to 'vcl/source/app') diff --git a/vcl/source/app/brand.cxx b/vcl/source/app/brand.cxx index 50b606e68266..007496a604ed 100644 --- a/vcl/source/app/brand.cxx +++ b/vcl/source/app/brand.cxx @@ -45,19 +45,6 @@ namespace { loadPng( rBaseDir + "/program/edition" + rName, rBitmap) || loadPng( rBaseDir + "/program" + rName, rBitmap); } - static bool loadSvg( const OUString & rPath, BitmapEx &rBitmap) - { - INetURLObject aObj( rPath ); - SvgData aSvgData(aObj.PathToFileName()); - rBitmap = aSvgData.getReplacement(); - return !rBitmap.IsEmpty(); - } - static bool tryLoadSvg( const OUString& rBaseDir, const OUString& rName, BitmapEx& rBitmap ) - { - return - loadSvg( rBaseDir + "/program/edition" + rName, rBitmap) || - loadSvg( rBaseDir + "/program" + rName, rBitmap); - } } bool Application::LoadBrandBitmap (const char* pName, BitmapEx &rBitmap) @@ -86,28 +73,4 @@ bool Application::LoadBrandBitmap (const char* pName, BitmapEx &rBitmap) return false; } -bool Application::LoadBrandSVG (const char *pName, BitmapEx &rBitmap) -{ - OUString aBaseDir( "$BRAND_BASE_DIR"); - rtl::Bootstrap::expandMacros( aBaseDir ); - rtl::OUString aBaseName( "/" + rtl::OUString::createFromAscii( pName ) ); - rtl::OUString aSvg( ".svg" ); - - rtl_Locale *pLoc = NULL; - osl_getProcessLocale (&pLoc); - LanguageTag aLanguageTag( *pLoc); - - ::std::vector< OUString > aFallbacks( aLanguageTag.getFallbackStrings()); - for (size_t i=0; i < aFallbacks.size(); ++i) - { - if (tryLoadSvg( aBaseDir, aBaseName + "-" + aFallbacks[i] + aSvg, rBitmap)) - return true; - } - - if (tryLoadSvg( aBaseDir, aBaseName + aSvg, rBitmap)) - return true; - - return false; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx index 90166eb390e8..f884d568ab42 100644 --- a/vcl/source/app/svapp.cxx +++ b/vcl/source/app/svapp.cxx @@ -1647,13 +1647,6 @@ void Application::SetFilterHdl( const Link& rLink ) // ----------------------------------------------------------------------- -const Link& Application::GetFilterHdl() -{ - return ImplGetSVData()->maGDIData.mpGrfConverter->GetFilterHdl(); -} - -// ----------------------------------------------------------------------- - sal_Bool ImplCallHotKey( const KeyCode& rKeyCode ) { ImplSVData* pSVData = ImplGetSVData(); -- cgit