]> git.armaanb.net Git - gen-shell.git/blobdiff - src/diag.cpp
semi-usable!
[gen-shell.git] / src / diag.cpp
index 3b4e3a9cdc436db97144325df623333f1df95319..9cbe9a7aafdb4b1c7256d10c89d1012d70c4279f 100644 (file)
@@ -135,29 +135,6 @@ int cmdDiagnostics ()
   std::cout << "   TASKDATA: "
             << (env ? env : "")
             << "\n";
-
-  // Taskwarrior version + location
-  std::string path (getenv ("PATH"));
-  std::cout << "       PATH: " << path << "\n";
-
-  for (const auto& i : split (path, ':'))
-  {
-    File task (i + "/task");
-    if (task.exists ())
-    {
-      std::string input;
-      std::string output;
-      execute ("task", {"--version"}, input, output);
-
-      std::cout << "Taskwarrior: "
-                << i
-                << "/task "
-                << output; // Still has \n
-    }
-  }
-
-  std::cout << "\n";
-  return 0;
 }
 
 ////////////////////////////////////////////////////////////////////////////////