diff options
-rw-r--r-- | vcl/inc/win/saldata.hxx | 1 | ||||
-rw-r--r-- | vcl/win/source/app/saldata.cxx | 25 |
2 files changed, 0 insertions, 26 deletions
diff --git a/vcl/inc/win/saldata.hxx b/vcl/inc/win/saldata.hxx index cc3a9e49f564..a38a6f7b0c65 100644 --- a/vcl/inc/win/saldata.hxx +++ b/vcl/inc/win/saldata.hxx @@ -244,7 +244,6 @@ bool ImplIsFontAvailable( HDC hDC, const UniString& rName ); // \WIN\SOURCE\APP\SALDATA.CXX rtl_TextEncoding ImplSalGetSystemEncoding(); -rtl::OString ImplSalGetWinAnsiString( const UniString& rStr, sal_Bool bFileName = FALSE ); UniString ImplSalGetUniString( const sal_Char* pStr, xub_StrLen nLen = STRING_LEN ); int ImplSalWICompareAscii( const wchar_t* pStr1, const char* pStr2 ); diff --git a/vcl/win/source/app/saldata.cxx b/vcl/win/source/app/saldata.cxx index 854849f46b55..4445315cc5cd 100644 --- a/vcl/win/source/app/saldata.cxx +++ b/vcl/win/source/app/saldata.cxx @@ -53,31 +53,6 @@ rtl_TextEncoding ImplSalGetSystemEncoding() // ----------------------------------------------------------------------- -rtl::OString ImplSalGetWinAnsiString( const UniString& rStr, sal_Bool bFileName ) -{ - rtl_TextEncoding eEncoding = ImplSalGetSystemEncoding(); - if ( bFileName ) - { - return rtl::OUStringToOString( rStr, eEncoding, - RTL_UNICODETOTEXT_FLAGS_UNDEFINED_UNDERLINE | - RTL_UNICODETOTEXT_FLAGS_INVALID_UNDERLINE | - RTL_UNICODETOTEXT_FLAGS_UNDEFINED_REPLACE | - RTL_UNICODETOTEXT_FLAGS_UNDEFINED_REPLACESTR | - RTL_UNICODETOTEXT_FLAGS_PRIVATE_MAPTO0 ); - } - else - { - return rtl::OUStringToOString( rStr, eEncoding, - RTL_UNICODETOTEXT_FLAGS_UNDEFINED_DEFAULT | - RTL_UNICODETOTEXT_FLAGS_INVALID_DEFAULT | - RTL_UNICODETOTEXT_FLAGS_UNDEFINED_REPLACE | - RTL_UNICODETOTEXT_FLAGS_UNDEFINED_REPLACESTR | - RTL_UNICODETOTEXT_FLAGS_PRIVATE_MAPTO0 ); - } -} - -// ----------------------------------------------------------------------- - UniString ImplSalGetUniString( const sal_Char* pStr, xub_StrLen nLen ) { return UniString( pStr, nLen, ImplSalGetSystemEncoding(), |