diff options
author | Chris Robinson <[email protected]> | 2018-11-10 00:01:34 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-10 00:01:34 -0800 |
commit | 981205de36aa05388d431a0c41fff1136aec327d (patch) | |
tree | 32e1c5248d0ac21d9bb081fa0cadd420b970ff3e | |
parent | 68bcf81756d160f9bf1c6c68b9d83611754ff54a (diff) |
Remove unused strdupW
-rw-r--r-- | Alc/compat.h | 2 | ||||
-rw-r--r-- | Alc/helpers.c | 16 |
2 files changed, 0 insertions, 18 deletions
diff --git a/Alc/compat.h b/Alc/compat.h index 3a5d66c2..77845d73 100644 --- a/Alc/compat.h +++ b/Alc/compat.h @@ -12,8 +12,6 @@ extern "C" { #define WIN32_LEAN_AND_MEAN #include <windows.h> -WCHAR *strdupW(const WCHAR *str); - /* Opens a file with standard I/O. The filename is expected to be UTF-8. */ FILE *al_fopen(const char *fname, const char *mode); diff --git a/Alc/helpers.c b/Alc/helpers.c index 41e4fdc9..000b9576 100644 --- a/Alc/helpers.c +++ b/Alc/helpers.c @@ -429,22 +429,6 @@ void *GetSymbol(void *handle, const char *name) return ret; } -WCHAR *strdupW(const WCHAR *str) -{ - const WCHAR *n; - WCHAR *ret; - size_t len; - - n = str; - while(*n) n++; - len = n - str; - - ret = calloc(sizeof(WCHAR), len+1); - if(ret != NULL) - memcpy(ret, str, sizeof(WCHAR)*len); - return ret; -} - FILE *al_fopen(const char *fname, const char *mode) { WCHAR *wname=NULL, *wmode=NULL; |