Comment out unused encoder code (per Frank Yellin)

git-svn-id: https://zxing.googlecode.com/svn/trunk@2720 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen@gmail.com 2013-05-11 18:11:16 +00:00
parent 091c57a0e1
commit 881e2cb7da

View file

@ -183,9 +183,12 @@ public final class Encoder {
// pad the end
int messageSizeInWords = (stuffedBits.getSize() + wordSize - 1) / wordSize;
// This seems to be redundant?
/*
for (int i = messageSizeInWords * wordSize - stuffedBits.getSize(); i > 0; i--) {
stuffedBits.appendBit(true);
}
*/
// generate check words
ReedSolomonEncoder rs = new ReedSolomonEncoder(getGF(wordSize));
@ -413,6 +416,8 @@ public final class Encoder {
}
// 2. pad last word to wordSize
// This seems to be redundant?
/*
n = out.getSize();
int remainder = n % wordSize;
if (remainder != 0) {
@ -427,6 +432,7 @@ public final class Encoder {
}
out.appendBit(j == 0);
}
*/
return out;
}