From: David Wells Date: Sun, 31 May 2015 22:19:04 +0000 (-0400) Subject: Remove empty declare and parse parameter methods. X-Git-Tag: v8.3.0-rc1~136^2~6 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db76070dbe4a291ab1dbcb41702a4a7f67ef8eca;p=dealii.git Remove empty declare and parse parameter methods. The default implementation (also an empty block) is covered by the base class. --- diff --git a/include/deal.II/base/data_out_base.h b/include/deal.II/base/data_out_base.h index 6f3d3c5137..ac625dc3ec 100644 --- a/include/deal.II/base/data_out_base.h +++ b/include/deal.II/base/data_out_base.h @@ -522,20 +522,6 @@ namespace DataOutBase * Constructor. */ GnuplotFlags (); - - /** - * Declare all flags with name and type as offered by this class, for use - * in input files. - */ - static void declare_parameters (ParameterHandler &prm); - - /** - * Read the parameters declared in declare_parameters() and set the flags - * for this output format accordingly. - * - * The flags thus obtained overwrite all previous contents of this object. - */ - void parse_parameters (const ParameterHandler &prm) const; }; /** @@ -849,20 +835,6 @@ namespace DataOutBase * Default constructor. */ GmvFlags (); - - /** - * Declare all flags with name and type as offered by this class, for use - * in input files. - */ - static void declare_parameters (ParameterHandler &prm); - - /** - * Read the parameters declared in declare_parameters() and set the flags - * for this output format accordingly. - * - * The flags thus obtained overwrite all previous contents of this object. - */ - void parse_parameters (const ParameterHandler &prm) const; }; /** @@ -894,20 +866,6 @@ namespace DataOutBase TecplotFlags (const char *tecplot_binary_file_name = NULL, const char *zone_name = NULL); - /** - * Declare all flags with name and type as offered by this class, for use - * in input files. - */ - static void declare_parameters (ParameterHandler &prm); - - /** - * Read the parameters declared in declare_parameters() and set the flags - * for this output format accordingly. - * - * The flags thus obtained overwrite all previous contents of this object. - */ - void parse_parameters (const ParameterHandler &prm) const; - /** * Return an estimate for the memory consumption, in bytes, of this * object. @@ -961,28 +919,6 @@ namespace DataOutBase VtkFlags (const double time = std::numeric_limits::min(), const unsigned int cycle = std::numeric_limits::min(), const bool print_date_and_time = true); - - /** - * Declare the flags with name and type as offered by this class, for use - * in input files. - * - * Unlike the flags in many of the other classes similar to this one, we - * do not actually declare parameters for the #cycle and #time member - * variables of this class. The reason is that there wouldn't appear to be - * a case where one would want to declare these parameters in an input - * file. Rather, these are typically values that change during the course - * of a simulation and can only reasonably be set as part of the execution - * of a program, rather than a priori by a user who runs this program. - */ - static void declare_parameters (ParameterHandler &prm); - - /** - * Read the parameters declared in declare_parameters() and set the flags - * for this output format accordingly. - * - * The flags thus obtained overwrite all previous contents of this object. - */ - void parse_parameters (const ParameterHandler &prm) const; }; @@ -1069,20 +1005,6 @@ namespace DataOutBase * Constructor. */ Deal_II_IntermediateFlags (); - - /** - * Declare all flags with name and type as offered by this class, for use - * in input files. - */ - static void declare_parameters (ParameterHandler &prm); - - /** - * Read the parameters declared in declare_parameters() and set the flags - * for this output format accordingly. - * - * The flags thus obtained overwrite all previous contents of this object. - */ - void parse_parameters (const ParameterHandler &prm) const; }; /** diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index 880cda09c4..53a7b6f338 100644 --- a/source/base/data_out_base.cc +++ b/source/base/data_out_base.cc @@ -1976,19 +1976,6 @@ namespace DataOutBase : dummy (0) {} - - - - void GnuplotFlags::declare_parameters (ParameterHandler &/*prm*/) - {} - - - - void GnuplotFlags::parse_parameters (const ParameterHandler &/*prm*/) const - {} - - - SvgFlags::SvgFlags (const unsigned int height_vector, const int azimuth_angle, const int polar_angle, @@ -2272,18 +2259,6 @@ namespace DataOutBase GmvFlags::GmvFlags () {} - - - - void GmvFlags::declare_parameters (ParameterHandler &/*prm*/) - {} - - - - void GmvFlags::parse_parameters (const ParameterHandler &/*prm*/) const - {} - - TecplotFlags:: TecplotFlags (const char *tecplot_binary_file_name, const char *zone_name) @@ -2294,15 +2269,6 @@ namespace DataOutBase - void TecplotFlags::declare_parameters (ParameterHandler &/*prm*/) - {} - - - - void TecplotFlags::parse_parameters (const ParameterHandler &/*prm*/) const - {} - - std::size_t TecplotFlags::memory_consumption () const { @@ -2323,17 +2289,6 @@ namespace DataOutBase {} - - void VtkFlags::declare_parameters (ParameterHandler &/*prm*/) - {} - - - - void VtkFlags::parse_parameters (const ParameterHandler &/*prm*/) const - {} - - - Deal_II_IntermediateFlags::Deal_II_IntermediateFlags () : dummy (0) @@ -2341,15 +2296,6 @@ namespace DataOutBase - void Deal_II_IntermediateFlags::declare_parameters (ParameterHandler &/*prm*/) - {} - - - - void Deal_II_IntermediateFlags::parse_parameters (const ParameterHandler &/*prm*/) const - {} - - OutputFormat parse_output_format (const std::string &format_name) {