summaryrefslogtreecommitdiff
path: root/vcl/generic
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-01-16 12:09:41 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-01-16 13:56:41 +0100
commit5a410d2e5a80ae1ea8a11300ddd2d8486e7e095b (patch)
treee17a2157a28a02230f7918b67dc252524f417722 /vcl/generic
parent9892e4c8d91fa1cbae0ced6b64c9735d9657a9b8 (diff)
Clang -Wunneeded-internal-declaration.
Diffstat (limited to 'vcl/generic')
-rw-r--r--vcl/generic/fontmanager/fontmanager.cxx24
1 files changed, 0 insertions, 24 deletions
diff --git a/vcl/generic/fontmanager/fontmanager.cxx b/vcl/generic/fontmanager/fontmanager.cxx
index 578cc23357c5..b4a5a4b3828b 100644
--- a/vcl/generic/fontmanager/fontmanager.cxx
+++ b/vcl/generic/fontmanager/fontmanager.cxx
@@ -2587,30 +2587,6 @@ bool PrintFontManager::getMetrics( fontID nFontID, sal_Unicode minCharacter, sal
// -------------------------------------------------------------------------
-static bool createWriteablePath( const ByteString& rPath )
-{
- bool bSuccess = false;
-
- if( access( rPath.GetBuffer(), W_OK ) )
- {
- int nPos = rPath.SearchBackward( '/' );
- if( nPos != STRING_NOTFOUND )
- while( nPos > 0 && rPath.GetChar( nPos ) == '/' )
- nPos--;
-
- if( nPos != STRING_NOTFOUND && nPos != 0 && createWriteablePath( rPath.Copy( 0, nPos+1 ) ) )
- {
- bSuccess = mkdir( rPath.GetBuffer(), 0777 ) ? false : true;
- }
- }
- else
- bSuccess = true;
-
- return bSuccess;
-}
-
-// -------------------------------------------------------------------------
-
// TODO: move most of this stuff into the central font-subsetting code
bool PrintFontManager::createFontSubset(
FontSubsetInfo& rInfo,