From 7545a53f53c786c1124ba750f9339ffc237d6467 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 14 Mar 2022 11:21:35 +0200 Subject: unit_online_get_fonts() has not been used by Online since 2017 Change-Id: I7dddb4fd40f219df1969f452c95170bc70caa44f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131524 Tested-by: Jenkins Reviewed-by: Tor Lillqvist --- vcl/unx/generic/fontmanager/fontmanager.cxx | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'vcl/unx/generic/fontmanager') diff --git a/vcl/unx/generic/fontmanager/fontmanager.cxx b/vcl/unx/generic/fontmanager/fontmanager.cxx index bee1f4d4d92b..eb2b869217b3 100644 --- a/vcl/unx/generic/fontmanager/fontmanager.cxx +++ b/vcl/unx/generic/fontmanager/fontmanager.cxx @@ -1141,25 +1141,4 @@ void PrintFontManager::getGlyphWidths( fontID nFont, CloseTTFont(pTTFont); } -/// used by online unit tests via dlopen. -extern "C" { -SAL_DLLPUBLIC_EXPORT const char * unit_online_get_fonts(void) -{ - std::vector< fontID > aFontIDs; - PrintFontManager &rMgr = PrintFontManager::get(); - rMgr.getFontList(aFontIDs); - OStringBuffer aBuf; - aBuf.append( static_cast(aFontIDs.size()) ); - aBuf.append( " PS fonts.\n" ); - for( auto nId : aFontIDs ) - { - const OUString& rName = rMgr.getPSName( nId ); - aBuf.append( OUStringToOString( rName, RTL_TEXTENCODING_UTF8 ) ); - aBuf.append( "\n" ); - } - static OString aResult = aBuf.makeStringAndClear(); - return aResult.getStr(); -} -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit