view src/octave-build-info.in.cc @ 31460:0f968958d7d5

eliminate Range class functions that are no longer needed The Range class was deprecated in Octave 7 and should now be removed from any public interfaces but we need it (or some replacement) to allow legacy range objects to be loaded from files created by old versions of Octave. This change is a start at doing this job. In a future change, we might move the Range class from Range.h to ov-legacy-range.cc, which is the only place where it is used, and eliminate the Range data member from the octave_legacy_range class. * ov.h, ov.cc (octave_value::make_range_rep_deprecated): Delete unnecessary functions. * ov.cc: Don't include Range.h. * xpow.h: Delete forward declaration of Range. * Range.h, Range.cc (Range::nnz, Range::checkelem, Range::elem, Range::index, Range::sort_internal, Range::diag, Range::sort, Range::issorted, Range::set_base, Range::set_limit, Range::set_inc, Range::inc, Range::final_value, Range::dims, Range::rows, Range::cols, Range::columns, Range::isempty, Range::operator ()): Delete. (operator << (std::ostream&, const Range&), operator >> (std::istream&, Range&)): Delete. (operator - (const Range&), operator + (double, const Range&), operator + (const Range&, double), operator - (double, const Range&) operator - (const Range&, double), operator * (double, const Range&) operator * (const Range&, double)): Delete functions and friend decls. * doc/liboctave/range.texi: Delete docs for Range class.
author John W. Eaton <jwe@octave.org>
date Wed, 16 Nov 2022 14:05:18 -0500
parents 796f54d4ddbf
children 597f3ee61a48
line wrap: on
line source

// %NO_EDIT_WARNING%

////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2016-2022 The Octave Project Developers
//
// See the file COPYRIGHT.md in the top-level directory of this
// distribution or <https://octave.org/copyright/>.
//
// This file is part of Octave.
//
// Octave is free software: you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Octave is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Octave; see the file COPYING.  If not, see
// <https://www.gnu.org/licenses/>.
//
////////////////////////////////////////////////////////////////////////

#if defined (HAVE_CONFIG_H)
#  include "config.h"
#endif

#include "octave-build-info.h"

std::string
octave_hg_id (void)
{
  return "%OCTAVE_HG_ID%";
}