summaryrefslogtreecommitdiff
path: root/vcl/source/app
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-03-04 09:22:56 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-03-04 11:23:59 +0000
commitecda52f6b3919950870f3ddb195d34d3baf71168 (patch)
treea893e22f5ad130e669ad03dc1ca44872f86377d7 /vcl/source/app
parentbef4b0dd6e638c1288c8855b514418e10ae19545 (diff)
callcatcher: unused code
Change-Id: I7dcaa6f57815321e108cd7ce284fe145dc0506f2
Diffstat (limited to 'vcl/source/app')
-rw-r--r--vcl/source/app/brand.cxx37
-rw-r--r--vcl/source/app/svapp.cxx7
2 files changed, 0 insertions, 44 deletions
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();