diff options
author | Tor Lillqvist <tml@collabora.com> | 2022-03-14 11:21:35 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2022-03-14 11:53:22 +0100 |
commit | 7545a53f53c786c1124ba750f9339ffc237d6467 (patch) | |
tree | b8c61955a29f3cfc0b5c48679daac45653e16ae4 /vcl/unx/generic/fontmanager | |
parent | 9630bbc6df8bbff2c853e07be93579a96cc7cdbb (diff) |
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 <tml@collabora.com>
Diffstat (limited to 'vcl/unx/generic/fontmanager')
-rw-r--r-- | vcl/unx/generic/fontmanager/fontmanager.cxx | 21 |
1 files changed, 0 insertions, 21 deletions
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<sal_Int32>(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: */ |