summaryrefslogtreecommitdiff
path: root/parse/node.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-02-02 16:21:41 -0500
committerOri Bernstein <ori@eigenstate.org>2014-02-02 16:21:41 -0500
commitadc89d37fecdce58d5af63a39c055369d624f089 (patch)
treeacb4ab0bf965d26b27bcecd43010193ddade7e6a /parse/node.c
parentf32109a79fd8602de04e1dca83ae3aaf44cadf03 (diff)
downloadmc-adc89d37fecdce58d5af63a39c055369d624f089.tar.gz
Remove 'trait' node.
This should go in the types table, not in it's own AST node.
Diffstat (limited to 'parse/node.c')
-rw-r--r--parse/node.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/parse/node.c b/parse/node.c
index af6c1c7..2d35f41 100644
--- a/parse/node.c
+++ b/parse/node.c
@@ -183,19 +183,6 @@ Node *mkblock(int line, Stab *scope)
return n;
}
-Node *mktraitdef(int line, Node *name, Node **funcs, size_t nfuncs, Node **membs, size_t nmembs)
-{
- Node *n;
-
- n = mknode(line, Ntrait);
- n->trait.name = name;
- n->trait.funcs = funcs;
- n->trait.nfuncs = nfuncs;
- n->trait.membs = membs;
- n->trait.nmembs = nmembs;
- return n;
-}
-
Node *mkimplstmt(int line, Node *name, Type *t)
{
Node *n;