MCPcopy Create free account
hub / github.com/SIPp/sipp / deIndex

Method deIndex

src/infile.cpp:364–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364void FileContents::deIndex(int line)
365{
366 if (indexField == -1) {
367 return;
368 }
369 assert(line >= 0);
370 assert(line < realLinesInFile);
371
372 char tmp[SIPP_MAX_MSG_SIZE];
373 getField(line, indexField, tmp, SIPP_MAX_MSG_SIZE);
374 str_int_map::iterator index_it = indexMap->find(str_int_map::key_type(tmp));
375 if (index_it != indexMap->end()) {
376 if (index_it->second == line) {
377 indexMap->erase(index_it);
378 }
379 }
380}

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected