]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove redundant constructors 10676/head
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 9 Jul 2020 04:10:26 +0000 (00:10 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 9 Jul 2020 04:10:26 +0000 (00:10 -0400)
include/deal.II/grid/grid_out.h
source/grid/grid_out.cc

index ca4be9de6b14edf6d3064bcfbb1866e03af7111b..6ae4408c9d923c0a2527294653a6e6d24e125b8b 100644 (file)
@@ -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.
      */
index af32079930ea55527b5b65951520ce88d59e2532..9e2e33a5ef213eb632b0d1bef5885b9ead0f9ce2 100644 (file)
@@ -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 &param)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.