mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 12:38:20 +00:00
Deprecate TableVal::Delete(), replace with Remove()
This commit is contained in:
parent
087a0f3636
commit
dc03f0bb83
4 changed files with 34 additions and 12 deletions
|
@ -1371,7 +1371,7 @@ void Manager::EndCurrentSend(ReaderFrontend* reader)
|
|||
SendEvent(stream->event, 4, stream->description->Ref(), ev->Ref(),
|
||||
predidx->Ref(), val->Ref());
|
||||
|
||||
stream->tab->Delete(ih->idxkey);
|
||||
stream->tab->Remove(ih->idxkey);
|
||||
stream->lastDict->Remove(lastDictIdxKey); // delete in next line
|
||||
delete lastDictIdxKey;
|
||||
delete(ih);
|
||||
|
@ -1737,7 +1737,7 @@ bool Manager::Delete(ReaderFrontend* reader, Value* *vals)
|
|||
// only if stream = true -> no streaming
|
||||
if ( streamresult )
|
||||
{
|
||||
if ( ! stream->tab->Delete(idxval) )
|
||||
if ( ! stream->tab->Remove(*idxval) )
|
||||
Warning(i, "Internal error while deleting values from input table");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue