mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 13:04:05 -08:00
remove some dead code
git-svn-id: https://zxing.googlecode.com/svn/trunk@1956 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
57c61ae22d
commit
e1457f76a7
|
@ -110,11 +110,9 @@ Ref<BitMatrix> GlobalHistogramBinarizer::getBlackMatrix() {
|
|||
for (int y = 1; y < 5; y++) {
|
||||
int rownum = height * y / 5;
|
||||
int right = (width << 2) / 5;
|
||||
int sdf;
|
||||
row = source.getRow(rownum, row);
|
||||
for (int x = width / 5; x < right; x++) {
|
||||
histogram[row[x] >> LUMINANCE_SHIFT]++;
|
||||
sdf = histogram[row[x] >> LUMINANCE_SHIFT];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -97,7 +97,7 @@ int DecodedBitStreamParser::decodeAsciiSegment(Ref<BitSource> bits, ostringstrea
|
|||
throw ReaderException("Not enough bits to decode");
|
||||
} else if (oneByte <= 128) { // ASCII data (ASCII value + 1)
|
||||
oneByte = upperShift ? (oneByte + 128) : oneByte;
|
||||
upperShift = false;
|
||||
// upperShift = false;
|
||||
result << (char) (oneByte - 1);
|
||||
return ASCII_ENCODE;
|
||||
} else if (oneByte == 129) { // Pad
|
||||
|
|
Loading…
Reference in a new issue