Remove some DEBUG blocks that apparently do not compile

git-svn-id: https://zxing.googlecode.com/svn/trunk@941 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2009-05-21 14:33:23 +00:00
parent bd73aebc73
commit 1c243335a6
2 changed files with 1 additions and 30 deletions

View file

@ -55,10 +55,6 @@ namespace reedsolomon {
GF256Poly::GF256Poly(GF256 &f, ArrayRef<int> c) : GF256Poly::GF256Poly(GF256 &f, ArrayRef<int> c) :
Counted(), field(f), coefficients(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(); fixCoefficients();
} }

View file

@ -36,10 +36,6 @@ namespace reedsolomon {
} }
void ReedSolomonDecoder::decode(ArrayRef<int> received, int twoS) { 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)); Ref<GF256Poly> poly(new GF256Poly(field, received));
@ -63,35 +59,14 @@ namespace reedsolomon {
} }
} }
if (noError) { if (noError) {
#ifdef DEBUG
cout << "before returning: syndromeCoefficients rc = " <<
syndromeCoefficients.array_->count_ << "\n";
#endif
return; return;
} }
#ifdef DEBUG
cout << "syndromeCoefficients rc = " <<
syndromeCoefficients.array_->count_ << "\n";
#endif
Ref<GF256Poly> syndrome(new GF256Poly(field, syndromeCoefficients)); 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)); Ref<GF256Poly> monomial(field.buildMonomial(twoS, 1));
#ifdef DEBUG
cout << "monopmial rc = " << monomial.object_->count_ << "\n";
#endif
vector<Ref<GF256Poly> > sigmaOmega vector<Ref<GF256Poly> > sigmaOmega
(runEuclideanAlgorithm(monomial, syndrome, twoS)); (runEuclideanAlgorithm(monomial, syndrome, twoS));
ArrayRef<int> errorLocations = findErrorLocations(sigmaOmega[0]); ArrayRef<int> errorLocations = findErrorLocations(sigmaOmega[0]);
#ifdef DEBUG
cout << "errorLocations count: " << errorLocations.array_->count_ << "\n";
#endif
ArrayRef<int> errorMagitudes = findErrorMagnitudes(sigmaOmega[1], ArrayRef<int> errorMagitudes = findErrorMagnitudes(sigmaOmega[1],
errorLocations); errorLocations);
for (unsigned i = 0; i < errorLocations->size(); i++) { for (unsigned i = 0; i < errorLocations->size(); i++) {