]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Silence more warnings in icc by removing functions in anonymous namespaces that aren...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 7 Mar 2005 02:54:02 +0000 (02:54 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 7 Mar 2005 02:54:02 +0000 (02:54 +0000)
git-svn-id: https://svn.dealii.org/trunk@10023 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/functionparser/fparser.cc

index 40545355323e3b0f19fe275db83b2e48f198be7f..911712ad128c20f68c6d67936f6910cd5269ce38 100644 (file)
@@ -1397,10 +1397,6 @@ public:
     compres(char v) : state(v) {}
     // is it?
     operator bool() const { return state != 0; }
-    // is it not?
-    bool operator! () const { return state != 1; }
-    bool operator==(bool b) const { return state != !b; }
-    bool operator!=(bool b) const { return state != b; }
 private:
     char state;
 };
@@ -1505,10 +1501,8 @@ public:
         UpdateValue();
     }
 
-    bool IsOriginal() const { return !(IsInverted() || IsNegated()); }
     bool IsInverted() const { return inverted; }
     bool IsNegated() const { return negated; }
-    bool IsInvertedOriginal() const { return IsInverted() && !IsNegated(); }
     bool IsNegatedOriginal() const { return !IsInverted() && IsNegated(); }
 
 private:
@@ -1564,9 +1558,7 @@ public:
         return *this;
     }
     const CodeTreeData *operator-> () const { return &p->first; }
-    const CodeTreeData &operator*  () const { return p->first; }
     CodeTreeData *operator-> () { PrepareForWrite(); return &p->first; }
-    CodeTreeData &operator*  () { PrepareForWrite(); return p->first; }
 
     void Shock();
 };
@@ -1604,7 +1596,6 @@ public:
 
     SubTree& getp0() { /*chk<1>();*/pit tmp=GetBegin();               return *tmp; }
     SubTree& getp1() { /*chk<2>();*/pit tmp=GetBegin(); ++tmp;        return *tmp; }
-    SubTree& getp2() { /*chk<3>();*/pit tmp=GetBegin(); ++tmp; ++tmp; return *tmp; }
 
     // set
     void SetImmed(double v) { data->SetImmed(v); }
@@ -1624,8 +1615,6 @@ public:
 
     compres NonZero() const { if(!IsImmed()) return maybe;
                               return GetImmed() != 0.0; }
-    compres IsPositive() const { if(!IsImmed()) return maybe;
-                                 return GetImmed() > 0.0; }
 
 private:
     struct ConstList

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.