diff options
author | John Hodge <tpg@mutabah.net> | 2016-08-20 17:00:29 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-08-20 17:00:29 +0800 |
commit | 5ae0c86b33d218c05ce91afe73608c5e9f1bd61c (patch) | |
tree | b69cfc8b545b018085b46ac52241a2f62d89434c /src/ast/macro.hpp | |
parent | e271a7ad8e6cbc2cf70880a244424bc15ebb8094 (diff) | |
download | mrust-5ae0c86b33d218c05ce91afe73608c5e9f1bd61c.tar.gz |
AST - Remove unused AST serialisation code
Diffstat (limited to 'src/ast/macro.hpp')
-rw-r--r-- | src/ast/macro.hpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/ast/macro.hpp b/src/ast/macro.hpp index 5cd53e1f..2798ad4a 100644 --- a/src/ast/macro.hpp +++ b/src/ast/macro.hpp @@ -8,8 +8,7 @@ namespace AST { -class MacroInvocation: - public Serialisable +class MacroInvocation { Span m_span; @@ -38,12 +37,6 @@ public: MacroInvocation clone() const; - static ::std::unique_ptr<MacroInvocation> from_deserialiser(Deserialiser& s) { - auto i = new MacroInvocation; - s.item( *i ); - return ::std::unique_ptr<MacroInvocation>(i); - } - void clear() { m_macro_name = ""; m_ident = ""; @@ -59,9 +52,6 @@ public: const ::std::string& input_ident() const { return m_ident; } const TokenTree& input_tt() const { return m_input; } - - SERIALISABLE_PROTOTYPES(); - friend ::std::ostream& operator<<(::std::ostream& os, const MacroInvocation& x) { os << x.m_attrs; if(x.m_attrs.m_items.size() > 0) |