diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/SendScreenshotPlus/src/mir_string.cpp | 28 | ||||
-rw-r--r-- | plugins/SendScreenshotPlus/src/mir_string.h | 3 | ||||
-rw-r--r-- | plugins/UserInfoEx/src/mir_string.cpp | 28 | ||||
-rw-r--r-- | plugins/UserInfoEx/src/mir_string.h | 3 |
4 files changed, 0 insertions, 62 deletions
diff --git a/plugins/SendScreenshotPlus/src/mir_string.cpp b/plugins/SendScreenshotPlus/src/mir_string.cpp index 362b09067f..251b5fd45e 100644 --- a/plugins/SendScreenshotPlus/src/mir_string.cpp +++ b/plugins/SendScreenshotPlus/src/mir_string.cpp @@ -103,34 +103,6 @@ char *mir_strnerase(char *pszDest, size_t sizeFrom, size_t sizeTo) { return pszDest;
}
-size_t mir_vsnwprintf(wchar_t *pszDest, const size_t cchDest, const wchar_t *pszFormat, va_list& argList)
-{
- size_t iRet, cchMax;
-
- if (!pszDest || !pszFormat || !*pszFormat)
- return -1;
-
- cchMax = cchDest - 1;
- iRet = _vsnwprintf(pszDest, cchMax, pszFormat, argList);
- if (iRet < 0) pszDest[0] = 0;
- else if (iRet >= cchMax) {
- pszDest[cchMax] = 0;
- iRet = cchMax;
- }
- return iRet;
-}
-
-size_t mir_snwprintf(wchar_t *pszDest, const size_t cchDest, const wchar_t *pszFormat, ...)
-{
- size_t iRet;
- va_list argList;
-
- va_start(argList, pszFormat);
- iRet = mir_vsnwprintf(pszDest, cchDest, pszFormat, argList);
- va_end(argList);
- return iRet;
-}
-
//---------------------------------------------------------------------------
void mir_stradd(char* &pszDest, const char *pszSrc)
{
diff --git a/plugins/SendScreenshotPlus/src/mir_string.h b/plugins/SendScreenshotPlus/src/mir_string.h index 00f4088056..c560048147 100644 --- a/plugins/SendScreenshotPlus/src/mir_string.h +++ b/plugins/SendScreenshotPlus/src/mir_string.h @@ -76,9 +76,6 @@ wchar_t * mir_wcsncat(wchar_t *pszDest, const wchar_t *pszSrc, const size_t cchD char * mir_strncat_c(char *pszDest, const char cSrc);
char * mir_wcsncat_c(char *pszDest, const char cSrc);
-size_t mir_vsnwprintf(wchar_t *pszDest, const size_t cchDest, const wchar_t *pszFormat, va_list& argList);
-size_t mir_snwprintf(wchar_t *pszDest, const size_t cchDest, const wchar_t *pszFormat, ...);
-
char * mir_strnerase(char *pszDest, size_t sizeFrom, size_t sizeTo);
void mir_stradd(char * &pszDest, const char *pszSrc);
diff --git a/plugins/UserInfoEx/src/mir_string.cpp b/plugins/UserInfoEx/src/mir_string.cpp index c538c110ad..206b16a609 100644 --- a/plugins/UserInfoEx/src/mir_string.cpp +++ b/plugins/UserInfoEx/src/mir_string.cpp @@ -98,34 +98,6 @@ char *mir_strnerase(char *pszDest, size_t sizeFrom, size_t sizeTo) { return pszDest;
}
-size_t mir_vsnwprintf(wchar_t *pszDest, const size_t cchDest, const wchar_t *pszFormat, va_list& argList)
-{
- size_t iRet, cchMax;
-
- if (!pszDest || !pszFormat || !*pszFormat)
- return -1;
-
- cchMax = cchDest - 1;
- iRet = _vsnwprintf(pszDest, cchMax, pszFormat, argList);
- if (iRet < 0) pszDest[0] = 0;
- else if (iRet >= cchMax) {
- pszDest[cchMax] = 0;
- iRet = cchMax;
- }
- return iRet;
-}
-
-size_t mir_snwprintf(wchar_t *pszDest, const size_t cchDest, const wchar_t *pszFormat, ...)
-{
- size_t iRet;
- va_list argList;
-
- va_start(argList, pszFormat);
- iRet = mir_vsnwprintf(pszDest, cchDest, pszFormat, argList);
- va_end(argList);
- return iRet;
-}
-
int mir_IsEmptyA(char *str)
{
if (str == NULL || str[0] == 0)
diff --git a/plugins/UserInfoEx/src/mir_string.h b/plugins/UserInfoEx/src/mir_string.h index 61a1b623a6..3282e767e2 100644 --- a/plugins/UserInfoEx/src/mir_string.h +++ b/plugins/UserInfoEx/src/mir_string.h @@ -68,9 +68,6 @@ wchar_t * mir_wcsncat(wchar_t *pszDest, const wchar_t *pszSrc, const size_t cchD char * mir_strncat_c(char *pszDest, const char cSrc);
char * mir_wcsncat_c(char *pszDest, const char cSrc);
-size_t mir_vsnwprintf(wchar_t *pszDest, const size_t cchDest, const wchar_t *pszFormat, va_list& argList);
-size_t mir_snwprintf (wchar_t *pszDest, const size_t cchDest, const wchar_t *pszFormat, ...);
-
char * mir_strnerase(char *pszDest, size_t sizeFrom, size_t sizeTo);
int mir_IsEmptyA(char *str);
|