]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Wipe is_zero function, which ended up being unused.
authoryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 11 Mar 2014 12:56:23 +0000 (12:56 +0000)
committeryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 11 Mar 2014 12:56:23 +0000 (12:56 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_petscscalar_complex@32641 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/numbers.h

index 135b90598799d2c4021572fe05c9678827e3748e..6e541fc6adcec8c3c1fd21c5afcd8823628b90d2 100644 (file)
@@ -210,12 +210,6 @@ namespace numbers
      */
     static
     real_type abs (const number &x);
-
-    /**
-     * Return true if this number is zero.
-     */
-    static
-    bool is_zero (const number &x);
   };
 
 
@@ -279,12 +273,6 @@ namespace numbers
      */
     static
     real_type abs (const std::complex<number> &x);
-
-    /**
-     * Return true if this number is zero.
-     */
-    static
-    bool is_zero (const std::complex<number> &x);
   };
 
 }
@@ -331,17 +319,6 @@ namespace numbers
   }
 
 
-  template <typename number>
-  bool
-  NumberTraits<number>::is_zero (const number &x)
-  {
-    if (x == 0)
-      return true;
-    else
-      return false;
-  }
-
-
   template <typename number>
   std::complex<number>
   NumberTraits<std::complex<number> >::conjugate (const std::complex<number> &x)
@@ -366,18 +343,6 @@ namespace numbers
   {
     return std::norm (x);
   }
-
-
-  template <typename number>
-  bool
-  NumberTraits<std::complex<number> >::is_zero (const std::complex<number> &x)
-  {
-    if ((std::real (x) == 0) && (std::imag (x) == 0))
-      return true;
-    else
-      return false;
-  }
-
 }
 
 

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.