From 5ae0c86b33d218c05ce91afe73608c5e9f1bd61c Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 20 Aug 2016 17:00:29 +0800 Subject: AST - Remove unused AST serialisation code --- src/ast/types.hpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/ast/types.hpp') diff --git a/src/ast/types.hpp b/src/ast/types.hpp index 1710fceb..e35c178f 100644 --- a/src/ast/types.hpp +++ b/src/ast/types.hpp @@ -35,8 +35,7 @@ struct TypeArgRef const AST::GenericParams* params; }; -struct Type_Function: - public Serialisable +struct Type_Function { bool is_unsafe; ::std::string m_abi; @@ -54,8 +53,6 @@ struct Type_Function: Type_Function(const Type_Function& other); Ordering ord(const Type_Function& x) const; - - SERIALISABLE_PROTOTYPES(); }; TAGGED_UNION(TypeData, None, @@ -101,8 +98,7 @@ TAGGED_UNION(TypeData, None, ); /// A type -class TypeRef: - public Serialisable +class TypeRef { Span m_span; public: @@ -282,9 +278,6 @@ public: friend class PrettyPrintType; friend ::std::ostream& operator<<(::std::ostream& os, const TypeRef& tr); - - static ::std::unique_ptr from_deserialiser(Deserialiser& s); - SERIALISABLE_PROTOTYPES(); }; #endif // TYPES_HPP_INCLUDED -- cgit v1.2.3