removing unused SubNetType class

This commit is contained in:
Vern Paxson 2021-11-07 16:56:57 -08:00
parent 1a6da54aed
commit 14abfc6831
2 changed files with 0 additions and 34 deletions

View file

@ -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;

View file

@ -152,7 +152,6 @@ class TypeList;
class TableType;
class SetType;
class RecordType;
class SubNetType;
class FuncType;
class EnumType;
class VectorType;
@ -165,7 +164,6 @@ using TypeListPtr = IntrusivePtr<TypeList>;
using TableTypePtr = IntrusivePtr<TableType>;
using SetTypePtr = IntrusivePtr<SetType>;
using RecordTypePtr = IntrusivePtr<RecordType>;
using SubNetTypePtr = IntrusivePtr<SubNetType>;
using FuncTypePtr = IntrusivePtr<FuncType>;
using EnumTypePtr = IntrusivePtr<EnumType>;
using VectorTypePtr = IntrusivePtr<VectorType>;
@ -226,9 +224,6 @@ public:
const RecordType* AsRecordType() const;
RecordType* AsRecordType();
const SubNetType* AsSubNetType() const;
SubNetType* AsSubNetType();
const FuncType* AsFuncType() const;
FuncType* AsFuncType();
@ -700,13 +695,6 @@ protected:
type_decl_list* types;
};
class SubNetType final : public Type
{
public:
SubNetType();
void Describe(ODesc* d) const override;
};
class FileType final : public Type
{
public: