From: David Wells Date: Tue, 14 Apr 2015 13:01:25 +0000 (-0400) Subject: Remove a variable that only appears in an assert. X-Git-Tag: v8.3.0-rc1~276^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=460adc3b3441568f9b9fd31d54aa19a5e800b26f;p=dealii.git Remove a variable that only appears in an assert. This is slightly simpler than declaring the variable and then using the (void) cast. --- 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]);