removed copystring function already defined in common wx utilities

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot 2001-09-06 19:14:46 +00:00
parent 58782f84f8
commit 977bf6ff42

View File

@ -13,18 +13,6 @@
#include "wx/defs.h"
#endif
char *
copystring (const char *s)
{
if (s == NULL) s = "";
size_t len = strlen (s) + 1;
char *news = new char[len];
memcpy (news, s, len); // Should be the fastest
return news;
}
#ifdef __WXMSW__
// from filefn.cpp
void WXDLLEXPORT wxSplitPath(const char *pszFileName,
@ -78,4 +66,4 @@ const char *wxGetTranslation(const char *str)
{
return str;
}
#endif // MSW
#endif // MSW