mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 13:38:19 +00:00
Completely remove all traces of the COUNTER type.
Relates to GH-1095
This commit is contained in:
parent
01fa5611ef
commit
417a6eb1e9
28 changed files with 79 additions and 140 deletions
|
@ -93,8 +93,6 @@ struct val_converter {
|
|||
{
|
||||
if ( type->Tag() == zeek::TYPE_COUNT )
|
||||
return zeek::val_mgr->Count(a);
|
||||
if ( type->Tag() == zeek::TYPE_COUNTER )
|
||||
return zeek::val_mgr->Count(a);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@ -463,8 +461,6 @@ struct type_checker {
|
|||
{
|
||||
if ( type->Tag() == zeek::TYPE_COUNT )
|
||||
return true;
|
||||
if ( type->Tag() == zeek::TYPE_COUNTER )
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -796,8 +792,6 @@ broker::expected<broker::data> bro_broker::val_to_data(const zeek::Val* v)
|
|||
return {v->AsInt()};
|
||||
case zeek::TYPE_COUNT:
|
||||
return {v->AsCount()};
|
||||
case zeek::TYPE_COUNTER:
|
||||
return {v->AsCounter()};
|
||||
case zeek::TYPE_PORT:
|
||||
{
|
||||
auto p = v->AsPortVal();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue