From: Wolfgang Bangerth <bangerth@math.tamu.edu>
Date: Sun, 24 Jan 2016 01:23:07 +0000 (-0600)
Subject: Remove now no longer used FE_PolyTensor::update_once/each.
X-Git-Tag: v8.4.0-rc2~52^2~4
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf55123754cab2b9313339df3bfe290b7b55384b;p=dealii.git

Remove now no longer used FE_PolyTensor::update_once/each.
---

diff --git a/include/deal.II/fe/fe_poly_tensor.h b/include/deal.II/fe/fe_poly_tensor.h
index 24495748c2..0761b12731 100644
--- a/include/deal.II/fe/fe_poly_tensor.h
+++ b/include/deal.II/fe/fe_poly_tensor.h
@@ -184,20 +184,6 @@ protected:
   MappingType mapping_type;
 
 
-  /**
-   * Given <tt>flags</tt>, determines the values which must be computed only
-   * for the reference cell. Make sure, that #mapping_type is set by the
-   * derived class, such that this function can operate correctly.
-   */
-  UpdateFlags update_once (const UpdateFlags flags) const;
-
-  /**
-   * Given <tt>flags</tt>, determines the values which must be computed in
-   * each cell cell. Make sure, that #mapping_type is set by the derived
-   * class, such that this function can operate correctly.
-   */
-  UpdateFlags update_each (const UpdateFlags flags) const;
-
   /* NOTE: The following function has its definition inlined into the class declaration
      because we otherwise run into a compiler error with MS Visual Studio. */
   virtual
@@ -210,7 +196,7 @@ protected:
     // generate a new data object and
     // initialize some fields
     InternalData *data = new InternalData;
-    data->update_each = update_each(update_flags) | update_once(update_flags);  // FIX: only update_each required
+    data->update_each = requires_update_flags(update_flags);
 
     const unsigned int n_q_points = quadrature.size();
 
diff --git a/source/fe/fe_poly_tensor.cc b/source/fe/fe_poly_tensor.cc
index 4f9c3635c9..fd6721d00d 100644
--- a/source/fe/fe_poly_tensor.cc
+++ b/source/fe/fe_poly_tensor.cc
@@ -1720,29 +1720,6 @@ fill_fe_subface_values
 template <class PolynomialType, int dim, int spacedim>
 UpdateFlags
 FE_PolyTensor<PolynomialType,dim,spacedim>::requires_update_flags(const UpdateFlags flags) const
-{
-  return update_once(flags) | update_each(flags);
-}
-
-
-template <class PolynomialType, int dim, int spacedim>
-UpdateFlags
-FE_PolyTensor<PolynomialType,dim,spacedim>::update_once (const UpdateFlags flags) const
-{
-  const bool values_once = (mapping_type == mapping_none);
-
-  UpdateFlags out = update_default;
-
-  if (values_once && (flags & update_values))
-    out |= update_values;
-
-  return out;
-}
-
-
-template <class PolynomialType, int dim, int spacedim>
-UpdateFlags
-FE_PolyTensor<PolynomialType,dim,spacedim>::update_each (const UpdateFlags flags) const
 {
   UpdateFlags out = update_default;
 
@@ -1827,7 +1804,6 @@ FE_PolyTensor<PolynomialType,dim,spacedim>::update_each (const UpdateFlags flags
 }
 
 
-
 // explicit instantiations
 #include "fe_poly_tensor.inst"