mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -08:00
Removed unnecessary second decodeRow() method
git-svn-id: https://zxing.googlecode.com/svn/trunk@166 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
215372f92a
commit
7ba2b30d43
|
@ -38,23 +38,12 @@ public final class MultiFormatUPCEANReader extends AbstractOneDReader {
|
|||
};
|
||||
|
||||
public Result decodeRow(int rowNumber, BitArray row) throws ReaderException {
|
||||
// Compute this location once and reuse it on multiple implementations
|
||||
int[] startGuardPattern = AbstractUPCEANReader.findStartGuardPattern(row);
|
||||
return decodeRow(rowNumber, row, startGuardPattern);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param rowNumber
|
||||
* @param row
|
||||
* @param startGuardRange
|
||||
* @return
|
||||
* @throws ReaderException
|
||||
*/
|
||||
public Result decodeRow(int rowNumber, BitArray row, int[] startGuardRange) throws ReaderException {
|
||||
ReaderException saved = null;
|
||||
for (int i = 0; i < readers.length; i++) {
|
||||
try {
|
||||
return readers[i].decodeRow(rowNumber, row, startGuardRange);
|
||||
return readers[i].decodeRow(rowNumber, row, startGuardPattern);
|
||||
} catch (ReaderException re) {
|
||||
saved = re;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue