| 362 | } |
| 363 | |
| 364 | void 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 | } |