Преглед на файлове

CTest: Remove code to fix scanbuild errors

Remove code from cmParseBlanketJSCoverage.cxx and
cmParseDelphiCoverage.cxx which caused scanbuild errors
about not reading the value that was stored.
Joseph Snyder преди 11 години
родител
ревизия
0622f92d23
променени са 2 файла, в които са добавени 0 реда и са изтрити 4 реда
  1. 0 2
      Source/CTest/cmParseBlanketJSCoverage.cxx
  2. 0 2
      Source/CTest/cmParseDelphiCoverage.cxx

+ 0 - 2
Source/CTest/cmParseBlanketJSCoverage.cxx

@@ -81,7 +81,6 @@ public:
               this->Coverage.TotalCoverage[filename];
           CoverageVector = localCoverageVector;
           localCoverageVector.clear();
-          foundFile=false;
           }
         foundFile= true;
         inSource = false;
@@ -122,7 +121,6 @@ public:
     FileLinesType& CoverageVector =
         this->Coverage.TotalCoverage[filename];
     CoverageVector = localCoverageVector;
-    foundFile=false;
     localCoverageVector.clear();
     return true;
     }

+ 0 - 2
Source/CTest/cmParseDelphiCoverage.cxx

@@ -136,8 +136,6 @@ public:
         break;
         }
       pos = lastoffset+1;
-      endnamepos = 0;
-      lastoffset =0;
       }
     /*
     *  Glob through the source directory for the