Change file close behavior for tee_file
[deliverable/binutils-gdb.git] / gdb / cli / cli-logging.c
index 3a5e14de3c71e7b779753adf91cc563c6a55df6b..670e7e2490870d16b1019cfa16734e65d5c6ecc8 100644 (file)
@@ -88,24 +88,6 @@ pop_output_files (void)
     current_uiout->redirect (NULL);
 }
 
-/* See cli-interp.h.  */
-
-ui_file *
-make_logging_output (ui_file *curr_output, ui_file_up logfile,
-                    bool logging_redirect)
-{
-  if (logging_redirect)
-    return logfile.release ();
-  else
-    {
-      /* Note that the "tee" takes ownership of the log file.  */
-      ui_file *out = new tee_file (curr_output, false,
-                                  logfile.get (), true);
-      logfile.release ();
-      return out;
-    }
-}
-
 /* This is a helper for the `set logging' command.  */
 static void
 handle_redirections (int from_tty)
This page took 0.023481 seconds and 4 git commands to generate.