# HG changeset patch # User John W. Eaton # Date 1637769743 18000 # Node ID ecf207896f76b070ca100f8a44a455fced168ec6 # Parent 2d80e308b9e48c03c62b94463852770268bb21e0 delete unused functions and deprecate file-io.h * file-io.h, file-io.cc (octave::mark_for_deletion_deprecated, octave::cleanup_tmp_files_deprecated): Delete functions and declarations. * file-io.h: Deprecate head file that no longer declares any symbols. diff -r 2d80e308b9e4 -r ecf207896f76 libinterp/corefcn/file-io.cc --- a/libinterp/corefcn/file-io.cc Wed Nov 24 12:01:52 2021 -0500 +++ b/libinterp/corefcn/file-io.cc Wed Nov 24 11:02:23 2021 -0500 @@ -67,7 +67,6 @@ #include "defun.h" #include "error.h" #include "errwarn.h" -#include "file-io.h" #include "interpreter-private.h" #include "interpreter.h" #include "load-path.h" @@ -3253,24 +3252,4 @@ return const_value ("stderr", args, streams.stderr_file ()); } -// Deprecated variables and functions. - -// Remove when corresponding global deprecated function is removed. -void mark_for_deletion_deprecated (const std::string& file) -{ - octave::interpreter& interp - = octave::__get_interpreter__ ("mark_for_deletion"); - - interp.mark_for_deletion (file); -} - -// Remove when corresponding global deprecated function is removed. -void cleanup_tmp_files_deprecated (void) -{ - octave::interpreter& interp - = octave::__get_interpreter__ ("cleanup_tmp_files"); - - interp.cleanup_tmp_files (); -} - OCTAVE_NAMESPACE_END diff -r 2d80e308b9e4 -r ecf207896f76 libinterp/corefcn/file-io.h --- a/libinterp/corefcn/file-io.h Wed Nov 24 12:01:52 2021 -0500 +++ b/libinterp/corefcn/file-io.h Wed Nov 24 11:02:23 2021 -0500 @@ -23,27 +23,9 @@ // //////////////////////////////////////////////////////////////////////// -// Written by John C. Campbell - #if ! defined (octave_file_io_h) #define octave_file_io_h 1 -#include "octave-config.h" - -#include - -OCTAVE_NAMESPACE_BEGIN - -// Use this function internally until the function that uses it is -// removed. Remove when corresponding global deprecated function is -// removed. -extern void mark_for_deletion_deprecated (const std::string&); - -// Use this function internally until the function that uses it is -// removed. Remove when corresponding global deprecated function is -// removed. -extern void cleanup_tmp_files_deprecated (void); - -OCTAVE_NAMESPACE_END +#warning "file-io.h was deprecated in Octave 8 and will be removed in a future version." #endif