From: Daniel Arndt Date: Thu, 9 Jul 2020 04:10:26 +0000 (-0400) Subject: Remove redundant constructors X-Git-Tag: v9.3.0-rc1~1306^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10676%2Fhead;p=dealii.git Remove redundant constructors --- diff --git a/include/deal.II/grid/grid_out.h b/include/deal.II/grid/grid_out.h index ca4be9de6b..6ae4408c9d 100644 --- a/include/deal.II/grid/grid_out.h +++ b/include/deal.II/grid/grid_out.h @@ -279,19 +279,6 @@ namespace GridOutFlags const bool curved_inner_cells = false, const bool write_additional_boundary_lines = true); - /** - * Copy constructor. Needed since this class (for backwards compatibility) - * has a reference member variable. - */ - Gnuplot(const Gnuplot &flags); - - /** - * Copy operator. Needed since this class (for backwards compatibility) - * has a reference member variable. - */ - Gnuplot & - operator=(const Gnuplot &flags); - /** * Declare parameters in ParameterHandler. */ diff --git a/source/grid/grid_out.cc b/source/grid/grid_out.cc index af32079930..9e2e33a5ef 100644 --- a/source/grid/grid_out.cc +++ b/source/grid/grid_out.cc @@ -158,29 +158,6 @@ namespace GridOutFlags {} - // TODO we can get rid of these extra constructors and assignment operators - // once we remove the reference member variable. - Gnuplot::Gnuplot(const Gnuplot &flags) - : Gnuplot(flags.write_cell_numbers, - flags.n_extra_curved_line_points, - flags.curved_inner_cells, - flags.write_additional_boundary_lines) - {} - - - - Gnuplot & - Gnuplot::operator=(const Gnuplot &flags) - { - write_cell_numbers = flags.write_cell_numbers; - n_extra_curved_line_points = flags.n_extra_curved_line_points; - curved_inner_cells = flags.curved_inner_cells; - write_additional_boundary_lines = flags.write_additional_boundary_lines; - - return *this; - } - - void Gnuplot::declare_parameters(ParameterHandler ¶m)