summaryrefslogtreecommitdiff
path: root/plugins/helpers/gen_helpers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/helpers/gen_helpers.cpp')
-rw-r--r--plugins/helpers/gen_helpers.cpp50
1 files changed, 1 insertions, 49 deletions
diff --git a/plugins/helpers/gen_helpers.cpp b/plugins/helpers/gen_helpers.cpp
index 9dd8b0fffe..3bf6e4976f 100644
--- a/plugins/helpers/gen_helpers.cpp
+++ b/plugins/helpers/gen_helpers.cpp
@@ -53,55 +53,7 @@ wchar_t* Hlp_GetWindowText(HWND hwndDlg)
return res;
}
-/**
- * Modified from Miranda CList, clistsettings.c
- **/
-
- // Logging
-static int WriteToDebugLogA(const char *szMsg)
-{
- return Netlib_Log(nullptr, szMsg);
-}
-
-int AddDebugLogMessageA(const char* fmt, ...)
-{
- char szText[MAX_DEBUG], szFinal[MAX_DEBUG];
-
- va_list va;
- va_start(va, fmt);
- mir_vsnprintf(szText, _countof(szText), fmt, va);
- va_end(va);
-#ifdef MODULENAME
- mir_snprintf(szFinal, "%s: %s", MODULENAME, szText);
-#else
- strncpy(szFinal, szText, _countof(szFinal));
-#endif
- return WriteToDebugLogA(szFinal);
-}
-
-int AddDebugLogMessage(const wchar_t* fmt, ...)
-{
- wchar_t tszText[MAX_DEBUG], tszFinal[MAX_DEBUG];
-
- va_list va;
- va_start(va, fmt);
- mir_vsnwprintf(tszText, _countof(tszText), fmt, va);
- va_end(va);
-#ifdef MODULENAME
- mir_snwprintf(tszFinal, L"%s: %s", MODULENAME, tszText);
-#else
- wcsncpy(tszFinal, tszText, _countof(tszFinal));
-#endif
-
- return WriteToDebugLogA(_T2A(tszFinal));
-}
-
-int ttoi(wchar_t *string)
-{
- return (string == nullptr) ? 0 : _wtoi(string);
-}
-
-wchar_t *itot(int num)
+wchar_t* _itow(int num)
{
wchar_t tRes[32];
// check this