]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove ReferenceCell operators that compare against numbers.
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 21 Jan 2021 01:54:47 +0000 (18:54 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 21 Jan 2021 17:29:34 +0000 (10:29 -0700)
include/deal.II/grid/reference_cell.h

index 8d6eb834630e4d9aa0fe9960d890a2effb19f1ff..46f33a7ff4a72174cf70c49c7752890fbbcc4f87 100644 (file)
@@ -148,18 +148,6 @@ namespace ReferenceCell
     bool
     operator!=(const Type &type) const;
 
-    /**
-     * Operator for equality comparison.
-     */
-    bool
-    operator==(const std::uint8_t &type) const;
-
-    /**
-     * Operator for inequality comparison.
-     */
-    bool
-    operator!=(const std::uint8_t &type) const;
-
     /**
      * Write and read the data of this object from a stream for the purpose
      * of serialization using the [BOOST serialization
@@ -219,22 +207,6 @@ namespace ReferenceCell
 
 
 
-  inline bool
-  Type::operator==(const std::uint8_t &type) const
-  {
-    return kind == type;
-  }
-
-
-
-  inline bool
-  Type::operator!=(const std::uint8_t &type) const
-  {
-    return kind != type;
-  }
-
-
-
   template <class Archive>
   inline void
   Type::serialize(Archive &archive, const unsigned int /*version*/)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.