diff --git a/modules/optim/src/lpsolver.cpp b/modules/optim/src/lpsolver.cpp index 0690387ac..45999b011 100644 --- a/modules/optim/src/lpsolver.cpp +++ b/modules/optim/src/lpsolver.cpp @@ -91,7 +91,6 @@ int solveLP(const Mat& Func, const Mat& Constr, Mat& z){ z.create(c.cols,1,CV_64FC1); MatIterator_ it=z.begin(); for(int i=1;i<=c.cols;i++,it++){ - std::vector::iterator pos=B.begin(); if(indexToRow[i]