diff --git a/html/src/TDocDirective.cxx b/html/src/TDocDirective.cxx
index 56b0d74319c6dc3460c7a418a454f200668772b0..4115043b2eabde39ecdaa3e0d8a11e50480f501b 100644
--- a/html/src/TDocDirective.cxx
+++ b/html/src/TDocDirective.cxx
@@ -382,15 +382,6 @@ Bool_t TDocMacroDirective::GetResult(TString& result)
       fileSysName += plusplus;
       fileSysName.ReplaceAll("\\", "\\\\");
       fileSysName.ReplaceAll("\"", "\\\"");
-      TString tmpFileName = gSystem->TempDirectory();
-      tmpFileName += "/";
-      tmpFileName += gSystem->BaseName(filename);
-      tmpFileName += ".C";
-      {
-         std::ofstream wrapper(tmpFileName);
-         wrapper << 
-                 << fileSysName << "\");}\n";
-      }
       TString invoc("root.exe -l ");
       if (wantBatch) {
          invoc += "-b ";