Browse Source

ENH: remove code that does not compile, on windows cwd must exist

Bill Hoffman 19 years ago
parent
commit
dc304cfdec
1 changed files with 2 additions and 8 deletions
  1. 2 8
      Source/kwsys/SystemTools.cxx

+ 2 - 8
Source/kwsys/SystemTools.cxx

@@ -118,15 +118,9 @@ inline int Rmdir(const char* dir)
 }
 inline const char* Getcwd(char* buf, unsigned int len)
 {
-  const char* ret = _getcwd(buf, len);
-  if(!ret)
-    {
-    fprintf(stderr, "No current working directory.\n");
-    abort();
-    }
-
-  return ret;
+  return  _getcwd(buf, len);
 }
+
 inline int Chdir(const char* dir)
 {
   #if defined(__BORLANDC__)