]> git.armaanb.net Git - gen-shell.git/blobdiff - src/diag.cpp
semi-usable!
[gen-shell.git] / src / diag.cpp
index 8478fba2ad658fc3efdb7823d8526893c14b578b..9cbe9a7aafdb4b1c7256d10c89d1012d70c4279f 100644 (file)
@@ -1,6 +1,6 @@
 ////////////////////////////////////////////////////////////////////////////////
 //
-// Copyright 2006 - 2017, Paul Beckingham, Federico Hernandez.
+// Copyright 2006 - 2017, Paul Beckingham, Federico Hernandez, 2020 Armaan Bhojwani.
 //
 // Permission is hereby granted, free of charge, to any person obtaining a copy
 // of this software and associated documentation files (the "Software"), to deal
@@ -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;
 }
 
 ////////////////////////////////////////////////////////////////////////////////