mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +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;
|
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
|
const FuncType* Type::AsFuncType() const
|
||||||
{
|
{
|
||||||
CHECK_TYPE_TAG(TYPE_FUNC, "Type::AsFuncType");
|
CHECK_TYPE_TAG(TYPE_FUNC, "Type::AsFuncType");
|
||||||
|
@ -1442,16 +1430,6 @@ string RecordType::GetFieldDeprecationWarning(int field, bool has_check) const
|
||||||
return "";
|
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(TypePtr yield_type) : Type(TYPE_FILE), yield(std::move(yield_type)) { }
|
||||||
|
|
||||||
FileType::~FileType() = default;
|
FileType::~FileType() = default;
|
||||||
|
|
12
src/Type.h
12
src/Type.h
|
@ -152,7 +152,6 @@ class TypeList;
|
||||||
class TableType;
|
class TableType;
|
||||||
class SetType;
|
class SetType;
|
||||||
class RecordType;
|
class RecordType;
|
||||||
class SubNetType;
|
|
||||||
class FuncType;
|
class FuncType;
|
||||||
class EnumType;
|
class EnumType;
|
||||||
class VectorType;
|
class VectorType;
|
||||||
|
@ -165,7 +164,6 @@ using TypeListPtr = IntrusivePtr<TypeList>;
|
||||||
using TableTypePtr = IntrusivePtr<TableType>;
|
using TableTypePtr = IntrusivePtr<TableType>;
|
||||||
using SetTypePtr = IntrusivePtr<SetType>;
|
using SetTypePtr = IntrusivePtr<SetType>;
|
||||||
using RecordTypePtr = IntrusivePtr<RecordType>;
|
using RecordTypePtr = IntrusivePtr<RecordType>;
|
||||||
using SubNetTypePtr = IntrusivePtr<SubNetType>;
|
|
||||||
using FuncTypePtr = IntrusivePtr<FuncType>;
|
using FuncTypePtr = IntrusivePtr<FuncType>;
|
||||||
using EnumTypePtr = IntrusivePtr<EnumType>;
|
using EnumTypePtr = IntrusivePtr<EnumType>;
|
||||||
using VectorTypePtr = IntrusivePtr<VectorType>;
|
using VectorTypePtr = IntrusivePtr<VectorType>;
|
||||||
|
@ -226,9 +224,6 @@ public:
|
||||||
const RecordType* AsRecordType() const;
|
const RecordType* AsRecordType() const;
|
||||||
RecordType* AsRecordType();
|
RecordType* AsRecordType();
|
||||||
|
|
||||||
const SubNetType* AsSubNetType() const;
|
|
||||||
SubNetType* AsSubNetType();
|
|
||||||
|
|
||||||
const FuncType* AsFuncType() const;
|
const FuncType* AsFuncType() const;
|
||||||
FuncType* AsFuncType();
|
FuncType* AsFuncType();
|
||||||
|
|
||||||
|
@ -700,13 +695,6 @@ protected:
|
||||||
type_decl_list* types;
|
type_decl_list* types;
|
||||||
};
|
};
|
||||||
|
|
||||||
class SubNetType final : public Type
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
SubNetType();
|
|
||||||
void Describe(ODesc* d) const override;
|
|
||||||
};
|
|
||||||
|
|
||||||
class FileType final : public Type
|
class FileType final : public Type
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue