[Libreoffice-commits] .: vcl/inc vcl/win

Andras Timar timar at kemper.freedesktop.org
Wed Feb 1 07:14:36 PST 2012


 vcl/inc/win/saldata.hxx        |    1 -
 vcl/win/source/app/saldata.cxx |   25 -------------------------
 2 files changed, 26 deletions(-)

New commits:
commit a31acd6b405777aa3ccb7298fabbe8b4aba55a32
Author: Andras Timar <atimar at suse.com>
Date:   Wed Feb 1 16:14:19 2012 +0100

    remove unused ImplSalGetWinAnsiString

diff --git a/vcl/inc/win/saldata.hxx b/vcl/inc/win/saldata.hxx
index cc3a9e4..a38a6f7 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 854849f..4445315 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(),


More information about the Libreoffice-commits mailing list