Remove some DEBUG blocks that apparently do not compile
authorsrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Thu, 21 May 2009 14:33:23 +0000 (14:33 +0000)
committersrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Thu, 21 May 2009 14:33:23 +0000 (14:33 +0000)
git-svn-id: http://zxing.googlecode.com/svn/trunk@941 59b500cc-1b3d-0410-9834-0bbf25fbcc57

cpp/core/src/common/reedsolomon/GF256Poly.cpp
cpp/core/src/common/reedsolomon/ReedSolomonDecoder.cpp

index 736ee33..8f4201c 100644 (file)
@@ -55,10 +55,6 @@ namespace reedsolomon {
   
   GF256Poly::GF256Poly(GF256 &f, ArrayRef<int> c) : 
   Counted(), field(f), coefficients(c) {
-#ifdef DEBUG
-    cout << "instantiating GF256Poly @ " << this << " with Array " << c.array_ << "(" << c.array_->count_ << "), size " << c.size() << ", ";
-    cout << "coefficients size = " << coefficients.size() << "\n";
-#endif
     fixCoefficients();
   }
   
index c387e97..92c7528 100644 (file)
@@ -36,10 +36,6 @@ namespace reedsolomon {
   }
   
   void ReedSolomonDecoder::decode(ArrayRef<int> received, int twoS) {
-#ifdef DEBUG
-    cout << "decode(): received = " << &received << ", array = " <<
-      received.array_ << " (" << received.array_->count_ << ")\n";
-#endif
     
     Ref<GF256Poly> poly(new GF256Poly(field, received));
     
@@ -63,35 +59,14 @@ namespace reedsolomon {
       }
     }
     if (noError) {
-      
-#ifdef DEBUG
-      cout << "before returning: syndromeCoefficients rc = " << 
-        syndromeCoefficients.array_->count_ << "\n";
-#endif
-      
       return;
     }
-    
-#ifdef DEBUG
-    cout << "syndromeCoefficients rc = " << 
-      syndromeCoefficients.array_->count_ << "\n";
-#endif
+
     Ref<GF256Poly> syndrome(new GF256Poly(field, syndromeCoefficients));
-#ifdef DEBUG
-    cout << "syndrome rc = " << syndrome.object_->count_ << 
-      ", syndromeCoefficients rc = " << 
-      syndromeCoefficients.array_->count_ << "\n";
-#endif
     Ref<GF256Poly> monomial(field.buildMonomial(twoS, 1));
-#ifdef DEBUG
-    cout << "monopmial rc = " << monomial.object_->count_ << "\n";
-#endif
     vector<Ref<GF256Poly> > sigmaOmega
       (runEuclideanAlgorithm(monomial, syndrome, twoS));
     ArrayRef<int> errorLocations = findErrorLocations(sigmaOmega[0]);
-#ifdef DEBUG
-    cout << "errorLocations count: " << errorLocations.array_->count_ << "\n";
-#endif
     ArrayRef<int> errorMagitudes = findErrorMagnitudes(sigmaOmega[1],
                                                        errorLocations);
     for (unsigned i = 0; i < errorLocations->size(); i++) {