changeset 31869:0149a2f4ac98

maint: Remove more `#if 0` commented-out code from the codebase. In changeset c8dd3da44e83, most instances of `#if 0` commented-out code were removed. A couple of cases were missed because they used spaces between the `#` and the `if` in `#if`. This change removes those instances.
author Arun Giridhar <arungiridhar@gmail.com>
date Wed, 01 Mar 2023 12:40:50 -0500
parents c6eeb8b44c28
children 6a2638cbea96
files libinterp/octave-value/ov-range.cc liboctave/wrappers/unistd-wrappers.c
diffstat 2 files changed, 0 insertions(+), 45 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/octave-value/ov-range.cc	Wed Mar 01 00:38:54 2023 -0500
+++ b/libinterp/octave-value/ov-range.cc	Wed Mar 01 12:40:50 2023 -0500
@@ -71,37 +71,6 @@
 
 // For now, enable only ov_range<double>.
 
-#  if 0
-
-template <>
-octave_hdf5_id ov_range<float>::hdf5_save_type = H5T_NATIVE_FLOAT;
-
-template <>
-octave_hdf5_id ov_range<octave_int8>::hdf5_save_type = H5T_NATIVE_INT8;
-
-template <>
-octave_hdf5_id ov_range<octave_int16>::hdf5_save_type = H5T_NATIVE_INT16;
-
-template <>
-octave_hdf5_id ov_range<octave_int32>::hdf5_save_type = H5T_NATIVE_INT32;
-
-template <>
-octave_hdf5_id ov_range<octave_int64>::hdf5_save_type = H5T_NATIVE_INT64;
-
-template <>
-octave_hdf5_id ov_range<octave_uint8>::hdf5_save_type = H5T_NATIVE_UINT8;
-
-template <>
-octave_hdf5_id ov_range<octave_uint16>::hdf5_save_type = H5T_NATIVE_UINT16;
-
-template <>
-octave_hdf5_id ov_range<octave_uint32>::hdf5_save_type = H5T_NATIVE_UINT32;
-
-template <>
-octave_hdf5_id ov_range<octave_uint64>::hdf5_save_type = H5T_NATIVE_UINT64;
-
-#  endif
-
 #else
 
 template <>
--- a/liboctave/wrappers/unistd-wrappers.c	Wed Mar 01 00:38:54 2023 -0500
+++ b/liboctave/wrappers/unistd-wrappers.c	Wed Mar 01 12:40:50 2023 -0500
@@ -148,20 +148,6 @@
 
   int status = _wspawnv (P_WAIT, wfile, wargv+1);
 
-#    if 0
-  // Code snippet from gnulib execute.c
-
-  // Executing arbitrary files as shell scripts is unsecure.
-  if (status == -1 && errno == ENOEXEC)
-    {
-      // prog is not a native executable.  Try to execute it as a
-      // shell script.  Note that prepare_spawn() has already prepended
-      // a hidden element "sh.exe" to argv.
-      argv[1] = prog_path;
-      status = _wspawnv (P_WAIT, wargv[0], wargv);
-    }
-#    endif
-
   // This happens when the spawned child process terminates.
 
   free (wfile);