mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
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:
parent
091c57a0e1
commit
881e2cb7da
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue