diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/generic/fontmanager/fontmanager.cxx | 24 |
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, |