mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 09:08:20 +00:00
Remove all of the random single-file deprecations
These are the changes that don't require a ton of changes to other files outside of the original removal.
This commit is contained in:
parent
7e9d89db0a
commit
0618be792f
270 changed files with 36 additions and 4632 deletions
13
src/Tag.cc
13
src/Tag.cc
|
@ -15,10 +15,6 @@ Tag::Tag(const EnumTypePtr& etype, type_t arg_type, subtype_t arg_subtype)
|
|||
val = etype->GetEnumVal(i);
|
||||
}
|
||||
|
||||
Tag::Tag(EnumType* etype, type_t arg_type, subtype_t arg_subtype)
|
||||
: Tag({NewRef{}, etype}, arg_type, arg_subtype)
|
||||
{ }
|
||||
|
||||
Tag::Tag(EnumValPtr arg_val)
|
||||
{
|
||||
assert(arg_val);
|
||||
|
@ -30,10 +26,6 @@ Tag::Tag(EnumValPtr arg_val)
|
|||
subtype = (i >> 31) & 0xffffffff;
|
||||
}
|
||||
|
||||
Tag::Tag(EnumVal* arg_val)
|
||||
: Tag({NewRef{}, arg_val})
|
||||
{ }
|
||||
|
||||
Tag::Tag(const Tag& other)
|
||||
{
|
||||
type = other.type;
|
||||
|
@ -85,11 +77,6 @@ const EnumValPtr& Tag::AsVal(const EnumTypePtr& etype) const
|
|||
return val;
|
||||
}
|
||||
|
||||
EnumVal* Tag::AsEnumVal(EnumType* etype) const
|
||||
{
|
||||
return AsVal({NewRef{}, etype}).get();
|
||||
}
|
||||
|
||||
std::string Tag::AsString() const
|
||||
{
|
||||
return util::fmt("%" PRIu32 "/%" PRIu32, type, subtype);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue