diff --git a/src/Type.cc b/src/Type.cc index 80a6e9c678..b03e3b8b7d 100644 --- a/src/Type.cc +++ b/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; diff --git a/src/Type.h b/src/Type.h index e81ed9eec9..cc6b6c9106 100644 --- a/src/Type.h +++ b/src/Type.h @@ -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; using TableTypePtr = IntrusivePtr; using SetTypePtr = IntrusivePtr; using RecordTypePtr = IntrusivePtr; -using SubNetTypePtr = IntrusivePtr; using FuncTypePtr = IntrusivePtr; using EnumTypePtr = IntrusivePtr; using VectorTypePtr = IntrusivePtr; @@ -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: