aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/helpers.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-11 20:40:02 -0800
committerChris Robinson <[email protected]>2018-11-11 20:40:02 -0800
commitf8bda31c72e073cfc36cc4b42574347657817c54 (patch)
treea63b8fb192db6146d9957abf054013eadb5f91f6 /Alc/helpers.cpp
parent51ed335833dab0cee5fc325e3a5c1968da934a49 (diff)
Remove unused wstr functions
Diffstat (limited to 'Alc/helpers.cpp')
-rw-r--r--Alc/helpers.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/Alc/helpers.cpp b/Alc/helpers.cpp
index bfb458b7..864278bb 100644
--- a/Alc/helpers.cpp
+++ b/Alc/helpers.cpp
@@ -846,51 +846,3 @@ void alstr_append_range(al_string *str, const al_string_char_type *from, const a
VECTOR_ELEM(*str, base+i) = 0;
}
}
-
-#ifdef _WIN32
-void alstr_copy_wcstr(al_string *str, const wchar_t *from)
-{
- int len;
- if((len=WideCharToMultiByte(CP_UTF8, 0, from, -1, nullptr, 0, nullptr, nullptr)) > 0)
- {
- VECTOR_RESIZE(*str, len-1, len);
- WideCharToMultiByte(CP_UTF8, 0, from, -1, &VECTOR_FRONT(*str), len, nullptr, nullptr);
- VECTOR_ELEM(*str, len-1) = 0;
- }
-}
-
-void alstr_append_wcstr(al_string *str, const wchar_t *from)
-{
- int len;
- if((len=WideCharToMultiByte(CP_UTF8, 0, from, -1, nullptr, 0, nullptr, nullptr)) > 0)
- {
- size_t base = alstr_length(*str);
- VECTOR_RESIZE(*str, base+len-1, base+len);
- WideCharToMultiByte(CP_UTF8, 0, from, -1, &VECTOR_ELEM(*str, base), len, nullptr, nullptr);
- VECTOR_ELEM(*str, base+len-1) = 0;
- }
-}
-
-void alstr_copy_wrange(al_string *str, const wchar_t *from, const wchar_t *to)
-{
- int len;
- if((len=WideCharToMultiByte(CP_UTF8, 0, from, (int)(to-from), nullptr, 0, nullptr, nullptr)) > 0)
- {
- VECTOR_RESIZE(*str, len, len+1);
- WideCharToMultiByte(CP_UTF8, 0, from, (int)(to-from), &VECTOR_FRONT(*str), len+1, nullptr, nullptr);
- VECTOR_ELEM(*str, len) = 0;
- }
-}
-
-void alstr_append_wrange(al_string *str, const wchar_t *from, const wchar_t *to)
-{
- int len;
- if((len=WideCharToMultiByte(CP_UTF8, 0, from, (int)(to-from), nullptr, 0, nullptr, nullptr)) > 0)
- {
- size_t base = alstr_length(*str);
- VECTOR_RESIZE(*str, base+len, base+len+1);
- WideCharToMultiByte(CP_UTF8, 0, from, (int)(to-from), &VECTOR_ELEM(*str, base), len+1, nullptr, nullptr);
- VECTOR_ELEM(*str, base+len) = 0;
- }
-}
-#endif