From 460adc3b3441568f9b9fd31d54aa19a5e800b26f Mon Sep 17 00:00:00 2001 From: David Wells Date: Tue, 14 Apr 2015 09:01:25 -0400 Subject: [PATCH] Remove a variable that only appears in an assert. This is slightly simpler than declaring the variable and then using the (void) cast. --- source/fe/mapping_fe.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/fe/mapping_fe.cc b/source/fe/mapping_fe.cc index 3a67e89721..77101247f0 100644 --- a/source/fe/mapping_fe.cc +++ b/source/fe/mapping_fe.cc @@ -479,11 +479,10 @@ MappingFE::fill_fe_values ( } else { - const unsigned int codim = spacedim-dim; - if (update_flags & update_normal_vectors) { - Assert( codim==1 , ExcMessage("There is no cell normal in codim 2.")); + Assert (spacedim - dim == 1, + ExcMessage("There is no cell normal in codim 2.")); if (dim==1) cross_product(normal_vectors[point], -DX_t[0]); -- 2.39.5