Bläddra i källkod

ENH: Removed old argument processing code that never does anything.

Brad King 22 år sedan
förälder
incheckning
9234f45e23
1 ändrade filer med 0 tillägg och 24 borttagningar
  1. 0 24
      Source/cmake.cxx

+ 0 - 24
Source/cmake.cxx

@@ -246,30 +246,6 @@ void cmake::SetArgs(const std::vector<std::string>& args)
 {
   m_Local = false;
   bool directoriesSet = false;
-  // watch for cmake and cmake srcdir invocations
-  if (args.size() <= 2)
-    {
-    directoriesSet = true;
-    this->SetHomeOutputDirectory
-      (cmSystemTools::GetCurrentWorkingDirectory().c_str());
-    this->SetStartOutputDirectory
-      (cmSystemTools::GetCurrentWorkingDirectory().c_str());
-    if (args.size() == 2 && args[1].find("-G") != 0)
-      {
-      this->SetHomeDirectory
-        (cmSystemTools::CollapseFullPath(args[1].c_str()).c_str());
-      this->SetStartDirectory
-        (cmSystemTools::CollapseFullPath(args[1].c_str()).c_str());
-      }
-    else
-      {
-      this->SetHomeDirectory
-        (cmSystemTools::GetCurrentWorkingDirectory().c_str());
-      this->SetStartDirectory
-        (cmSystemTools::GetCurrentWorkingDirectory().c_str());
-      }
-    }
-
   for(unsigned int i=1; i < args.size(); ++i)
     {
     std::string arg = args[i];