summaryrefslogtreecommitdiff
path: root/src/ast/types.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-20 17:00:29 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-20 17:00:29 +0800
commit5ae0c86b33d218c05ce91afe73608c5e9f1bd61c (patch)
treeb69cfc8b545b018085b46ac52241a2f62d89434c /src/ast/types.hpp
parente271a7ad8e6cbc2cf70880a244424bc15ebb8094 (diff)
downloadmrust-5ae0c86b33d218c05ce91afe73608c5e9f1bd61c.tar.gz
AST - Remove unused AST serialisation code
Diffstat (limited to 'src/ast/types.hpp')
-rw-r--r--src/ast/types.hpp11
1 files changed, 2 insertions, 9 deletions
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<TypeRef> from_deserialiser(Deserialiser& s);
- SERIALISABLE_PROTOTYPES();
};
#endif // TYPES_HPP_INCLUDED