| 383 | //==================================================================== |
| 384 | |
| 385 | void FConfigFile::ClearKey(const char *key) |
| 386 | { |
| 387 | if (CurrentSection->RootEntry == NULL) |
| 388 | { |
| 389 | return; |
| 390 | } |
| 391 | FConfigEntry **prober = &CurrentSection->RootEntry, *probe = *prober; |
| 392 | |
| 393 | while (probe != NULL && stricmp(probe->Key, key) != 0) |
| 394 | { |
| 395 | prober = &probe->Next; |
| 396 | probe = *prober; |
| 397 | } |
| 398 | if (probe != NULL) |
| 399 | { |
| 400 | *prober = probe->Next; |
| 401 | if (CurrentSection->LastEntryPtr == &probe->Next) |
| 402 | { |
| 403 | CurrentSection->LastEntryPtr = prober; |
| 404 | } |
| 405 | delete[] probe->Value; |
| 406 | delete[] (char *)probe; |
| 407 | } |
| 408 | } |
| 409 | |
| 410 | //==================================================================== |
| 411 | // |
no test coverage detected