From d27a70a96f1f606da09e14233a0a4557a75d3174 Mon Sep 17 00:00:00 2001 From: Jean-Paul Pelteret Date: Thu, 1 Feb 2018 19:03:14 +0100 Subject: [PATCH] Remove a typedef thats unused when compiling in release mode. Fixes 5840. --- source/hp/dof_handler.cc | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/source/hp/dof_handler.cc b/source/hp/dof_handler.cc index 168570ac95..01c0c7d428 100644 --- a/source/hp/dof_handler.cc +++ b/source/hp/dof_handler.cc @@ -599,12 +599,10 @@ namespace internal { const unsigned int dim = 1; - typedef DoFHandler BaseClass; - Assert (dof_handler.finite_elements != nullptr, - typename BaseClass::ExcNoFESelected()); + (typename DoFHandler::ExcNoFESelected())); Assert (dof_handler.finite_elements->size() > 0, - typename BaseClass::ExcNoFESelected()); + (typename DoFHandler::ExcNoFESelected())); Assert (dof_handler.tria->n_levels() > 0, ExcMessage("The current Triangulation must not be empty.")); Assert (dof_handler.tria->n_levels() == dof_handler.levels.size (), @@ -625,12 +623,10 @@ namespace internal { const unsigned int dim = 2; - typedef DoFHandler BaseClass; - Assert (dof_handler.finite_elements != nullptr, - typename BaseClass::ExcNoFESelected()); + (typename DoFHandler::ExcNoFESelected())); Assert (dof_handler.finite_elements->size() > 0, - typename BaseClass::ExcNoFESelected()); + (typename DoFHandler::ExcNoFESelected())); Assert (dof_handler.tria->n_levels() > 0, ExcMessage("The current Triangulation must not be empty.")); Assert (dof_handler.tria->n_levels() == dof_handler.levels.size (), @@ -655,12 +651,10 @@ namespace internal { const unsigned int dim = 3; - typedef DoFHandler BaseClass; - Assert (dof_handler.finite_elements != nullptr, - typename BaseClass::ExcNoFESelected()); + (typename DoFHandler::ExcNoFESelected())); Assert (dof_handler.finite_elements->size() > 0, - typename BaseClass::ExcNoFESelected()); + (typename DoFHandler::ExcNoFESelected())); Assert (dof_handler.tria->n_levels() > 0, ExcMessage("The current Triangulation must not be empty.")); Assert (dof_handler.tria->n_levels() == dof_handler.levels.size (), -- 2.39.5