summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-09-29 17:38:21 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-09-29 17:38:21 +0000
commitb4dda82ea61973078e7fe6678af7aaa72ea0d30b (patch)
tree3cff106e7ad9ec849c257bff58e221eda159d994 /plugins/Clist_modern/src/modern_utils.cpp
parentfb530563908192710e111786f636da2ebccb7924 (diff)
runtime allocation functions replaced with mir_*
function strdupn() removed git-svn-id: http://svn.miranda-ng.org/main/trunk@15475 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_utils.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_utils.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/plugins/Clist_modern/src/modern_utils.cpp b/plugins/Clist_modern/src/modern_utils.cpp
index 196398b68f..03152cbf9a 100644
--- a/plugins/Clist_modern/src/modern_utils.cpp
+++ b/plugins/Clist_modern/src/modern_utils.cpp
@@ -23,22 +23,6 @@ char * __cdecl strstri(char *a, const char *b)
return NULL;
}
-//copy len symbols from string - do not check is it null terminated or len is more then actual
-char * strdupn(const char * src, int len)
-{
- char * p;
- if (src == NULL) return NULL;
- p = (char*)malloc(len + 1);
- if (!p) return 0;
- memcpy(p, src, len);
- p[len] = '\0';
- return p;
-}
-
-#ifdef _DEBUG
-#undef DeleteObject
-#endif
-
void TRACE_ERROR()
{
DWORD t = GetLastError();
@@ -64,17 +48,6 @@ void TRACE_ERROR()
LocalFree(lpMsgBuf);
}
-BOOL DebugDeleteObject(HGDIOBJ a)
-{
- BOOL res = DeleteObject(a);
- if (!res) TRACE_ERROR();
- return res;
-}
-
-#ifdef _DEBUG
-#define DeleteObject(a) DebugDeleteObject(a)
-#endif
-
// load small icon (not shared) it IS NEED to be destroyed
HICON LoadSmallIcon(HINSTANCE hInstance, int index)
{