mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
removing unused SubNetType class
This commit is contained in:
parent
1a6da54aed
commit
14abfc6831
2 changed files with 0 additions and 34 deletions
22
src/Type.cc
22
src/Type.cc
|
@ -123,18 +123,6 @@ RecordType* Type::AsRecordType()
|
|||
return (RecordType*)this;
|
||||
}
|
||||
|
||||
const SubNetType* Type::AsSubNetType() const
|
||||
{
|
||||
CHECK_TYPE_TAG(TYPE_SUBNET, "Type::AsSubNetType");
|
||||
return (const SubNetType*)this;
|
||||
}
|
||||
|
||||
SubNetType* Type::AsSubNetType()
|
||||
{
|
||||
CHECK_TYPE_TAG(TYPE_SUBNET, "Type::AsSubNetType");
|
||||
return (SubNetType*)this;
|
||||
}
|
||||
|
||||
const FuncType* Type::AsFuncType() const
|
||||
{
|
||||
CHECK_TYPE_TAG(TYPE_FUNC, "Type::AsFuncType");
|
||||
|
@ -1442,16 +1430,6 @@ string RecordType::GetFieldDeprecationWarning(int field, bool has_check) const
|
|||
return "";
|
||||
}
|
||||
|
||||
SubNetType::SubNetType() : Type(TYPE_SUBNET) { }
|
||||
|
||||
void SubNetType::Describe(ODesc* d) const
|
||||
{
|
||||
if ( d->IsReadable() )
|
||||
d->Add("subnet");
|
||||
else
|
||||
d->Add(int(Tag()));
|
||||
}
|
||||
|
||||
FileType::FileType(TypePtr yield_type) : Type(TYPE_FILE), yield(std::move(yield_type)) { }
|
||||
|
||||
FileType::~FileType() = default;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue