From: Daniel Arndt Date: Fri, 9 Aug 2019 00:35:46 +0000 (-0600) Subject: Remove match_dimension X-Git-Tag: v9.2.0-rc1~1279^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8529%2Fhead;p=dealii.git Remove match_dimension --- diff --git a/include/deal.II/fe/fe_tools.templates.h b/include/deal.II/fe/fe_tools.templates.h index 2e41741d70..94ff5331c8 100644 --- a/include/deal.II/fe/fe_tools.templates.h +++ b/include/deal.II/fe/fe_tools.templates.h @@ -1355,39 +1355,6 @@ namespace FETools fe2.get_interpolation_matrix(fe1, tmp); interpolation_matrix = tmp; } - - - - // return how many characters - // starting at the given position - // of the string match either the - // generic string "" or the - // specialized string with "dim" - // replaced with the numeric value - // of the template argument - template - inline unsigned int - match_dimension(const std::string &name, const unsigned int position) - { - if (position >= name.size()) - return 0; - - if ((position + 5 < name.size()) && (name[position] == '<') && - (name[position + 1] == 'd') && (name[position + 2] == 'i') && - (name[position + 3] == 'm') && (name[position + 4] == '>')) - return 5; - - Assert(dim < 10, ExcNotImplemented()); - const char dim_char = '0' + dim; - - if ((position + 3 < name.size()) && (name[position] == '<') && - (name[position + 1] == dim_char) && (name[position + 2] == '>')) - return 3; - - // some other string that doesn't - // match - return 0; - } } // namespace FEToolsGetInterpolationMatrixHelper } // namespace internal