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:
srowen 2008-02-05 22:00:48 +00:00
parent 215372f92a
commit 7ba2b30d43

View file

@ -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;
}