Remove redundant functions for Documents

There's no need for a `string` function since one already
exists for Nodes.

Now the root node is always stored on the document. This
means callers of `ts_document_root_node` don't need to release
its return value.
This commit is contained in:
Max Brunsfeld 2014-08-08 12:58:39 -07:00
parent 7ba3953f7e
commit 8da9219c3a
6 changed files with 23 additions and 43 deletions

View file

@ -235,7 +235,7 @@ class CCodeGenerator {
return lookahead + " == " + escape_char(range.min);
} else {
return escape_char(range.min) + string(" <= ") + lookahead + " && " +
lookahead + " <= " + escape_char(range.max);
lookahead + " <= " + escape_char(range.max);
}
}