Commits

Adrian Buehlmann committed 789e70f

shellext: remove unused hf_wctomb

Comments (0)

Files changed (2)

win32/shellext/TortoiseUtils.cpp

 }
 
 
-LPSTR hf_wctomb(LPSTR lpa, LPCWSTR lpw, int nChars)
-{
-    assert(lpw != NULL);
-    assert(lpa != NULL);
-
-    lpa[0] = '\0';
-    WideCharToMultiByte(CP_ACP, 0, lpw, -1, lpa, nChars, NULL, NULL);
-    return lpa;
-}
-
-
 std::string GetTHgProgRoot()
 {
     LPCSTR regname = "Software\\TortoiseHg";

win32/shellext/TortoiseUtils.h

 #define _WCSTR(str) hf_mbtowc((LPWSTR)alloca((strlen(str) + 1) * sizeof(WCHAR)),(str),strlen(str) + 1)
 
 LPWSTR hf_mbtowc(LPWSTR lpw, LPCSTR lpa, int nChars);
-LPSTR hf_wctomb(LPSTR lpa, LPCWSTR lpw, int nChars);
 
 std::string GetTHgProgRoot();
 std::string GetTemporaryFile(LPCSTR prefix="THG");