removing unreachible code

pull/1141/head
Andrey Pavlenko 11 years ago
parent ee13ee3c6d
commit 74c72a1d7a
  1. 6
      modules/imgproc/src/histogram.cpp

@ -778,7 +778,7 @@ calcHist_( vector<uchar*>& _ptrs, const vector<int>& _deltas,
calcHist1D_Invoker<T> body(_ptrs, _deltas, hist, _uniranges, size[0], dims, imsize); calcHist1D_Invoker<T> body(_ptrs, _deltas, hist, _uniranges, size[0], dims, imsize);
parallel_for(BlockedRange(0, imsize.height), body); parallel_for(BlockedRange(0, imsize.height), body);
return; return;
#endif #else
double a = uniranges[0], b = uniranges[1]; double a = uniranges[0], b = uniranges[1];
int sz = size[0], d0 = deltas[0], step0 = deltas[1]; int sz = size[0], d0 = deltas[0], step0 = deltas[1];
const T* p0 = (const T*)ptrs[0]; const T* p0 = (const T*)ptrs[0];
@ -801,6 +801,7 @@ calcHist_( vector<uchar*>& _ptrs, const vector<int>& _deltas,
((int*)H)[idx]++; ((int*)H)[idx]++;
} }
} }
#endif //HAVE_TBB
} }
else if( dims == 2 ) else if( dims == 2 )
{ {
@ -808,7 +809,7 @@ calcHist_( vector<uchar*>& _ptrs, const vector<int>& _deltas,
calcHist2D_Invoker<T> body(_ptrs, _deltas, hist, _uniranges, size, dims, imsize, hstep); calcHist2D_Invoker<T> body(_ptrs, _deltas, hist, _uniranges, size, dims, imsize, hstep);
parallel_for(BlockedRange(0, imsize.height), body); parallel_for(BlockedRange(0, imsize.height), body);
return; return;
#endif #else
double a0 = uniranges[0], b0 = uniranges[1], a1 = uniranges[2], b1 = uniranges[3]; double a0 = uniranges[0], b0 = uniranges[1], a1 = uniranges[2], b1 = uniranges[3];
int sz0 = size[0], sz1 = size[1]; int sz0 = size[0], sz1 = size[1];
int d0 = deltas[0], step0 = deltas[1], int d0 = deltas[0], step0 = deltas[1],
@ -837,6 +838,7 @@ calcHist_( vector<uchar*>& _ptrs, const vector<int>& _deltas,
((int*)(H + hstep0*idx0))[idx1]++; ((int*)(H + hstep0*idx0))[idx1]++;
} }
} }
#endif //HAVE_TBB
} }
else if( dims == 3 ) else if( dims == 3 )
{ {

Loading…
Cancel
Save