Skip to content

Commit

Permalink
removed unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
schnaader committed Jul 28, 2021
1 parent bc4d0c0 commit 968b687
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions CandidateFinder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,7 @@ void analyzeTask(CandidateFinder& candidateFinder) {
if (correlationCoefficient > settings.hysteresisMax) {
processingCandidate = true;

candidate.bytePerPixel = 1;
switch (candidateFinder.candidateSettings.bitDepth) {
case Bitdepth::bpp16:
candidate.bytePerPixel = 2;
break;
case Bitdepth::bpp24:
candidate.bytePerPixel = 3;
break;
case Bitdepth::bpp32:
candidate.bytePerPixel = 4;
break;
}
candidate.bytePerPixel = bytePerPixel;
candidate.width = width;
candidate.startOffset = offset;
candidate.startLine = height;
Expand Down

0 comments on commit 968b687

Please sign in to comment.