[PPL-devel] [GIT] ppl/ppl(master): Dense_Row: remove useless debugging code from the OK () method.

Marco Poletti poletti.marco at gmail.com
Mon Dec 27 09:20:04 CET 2010


Module: ppl/ppl
Branch: master
Commit: ff7564a57ae554269f7f4101f99d59eadc4b6028
URL:    http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=ff7564a57ae554269f7f4101f99d59eadc4b6028

Author: Marco Poletti <poletti.marco at gmail.com>
Date:   Mon Dec 27 09:20:53 2010 +0100

Dense_Row: remove useless debugging code from the OK() method.

---

 src/Dense_Row.cc |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/src/Dense_Row.cc b/src/Dense_Row.cc
index dddc104..40dcdcb 100644
--- a/src/Dense_Row.cc
+++ b/src/Dense_Row.cc
@@ -392,14 +392,6 @@ PPL::Dense_Row::OK() const {
     if (vec_ == 0)
       is_broken = true;
   }
-  
-  // TODO: Remove this.
-  // It was added to help finding unconstructed Coefficients with valgrind.
-  
-  Coefficient sum;
-  
-  for (dimension_type i = size(); i-- > 0; )
-    sum += vec_[i];
 
   return !is_broken;
 }




More information about the PPL-devel mailing list