]> git.kernelconcepts.de Git - karo-tx-redboot.git/blobdiff - tools/src/tools/configtool/standalone/wxwin/ecutils.cpp
unified MX27, MX25, MX37 trees
[karo-tx-redboot.git] / tools / src / tools / configtool / standalone / wxwin / ecutils.cpp
index a7ec2e5591f9f23ec42cbeaeebc773be0762bcb6..87706bd30ce3991364602e47492bbb437e224ae2 100644 (file)
@@ -2,7 +2,6 @@
 //                                                                          
 // ----------------------------------------------------------------------------
 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
-// Copyright (C) 2003 John Dallaway
 //
 // This program is part of the eCos host tools.
 //
@@ -28,7 +27,7 @@
 //===========================================================================
 //#####DESCRIPTIONBEGIN####
 //
-// Author(s):  sdf, jld
+// Author(s):  sdf
 // Contact(s): sdf
 // Date:               1998/08/11
 // Version:            0.01
 #include <tlhelp32.h>
 #endif
 
-#ifdef __CYGWIN__
-#include <sys/cygwin.h> /* for cygwin_conv_to_*_path() */
-#endif
-
 #if 0
 
 #define INCLUDEFILE <string>
@@ -262,40 +257,6 @@ const wxString ecUtils::LoadString(UINT id)
 }
 #endif
 
-const wxString ecUtils::NativeToPosixPath(const wxString & native)
-{
-#ifdef __CYGWIN__
-    if (native.IsEmpty())
-        return native;
-    else
-    {
-        wxString posix;
-        cygwin_conv_to_posix_path(native.c_str(), posix.GetWriteBuf(MAXPATHLEN + 1));
-        posix.UngetWriteBuf();
-        return posix;
-    }
-#else
-    return native;
-#endif
-}
-
-const wxString ecUtils::PosixToNativePath(const wxString & posix)
-{
-#ifdef __CYGWIN__
-    if (posix.IsEmpty())
-        return posix;
-    else
-    {
-        wxString native;
-        cygwin_conv_to_win32_path(posix.c_str(), native.GetWriteBuf(MAXPATHLEN + 1));
-        native.UngetWriteBuf();
-        return native;
-    }
-#else
-    return posix;
-#endif
-}
-
 bool ecUtils::AddToPath(const ecFileName & strFolder, bool bAtFront)
 {
     wxString strPath,strOldPath;