diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-12-05 22:22:34 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-12-05 22:22:34 -0800 |
commit | 628abc38424b009582fa1443565101f103b99043 (patch) | |
tree | 0403271d9ab265fce9aa6f279bacf721b600f89a | |
parent | 6c1f76a8a22f6c84231e5101f0950ce353ec8075 (diff) |
Revert "API change: Add cmark_node_set_type for completeness."
This reverts commit 6c1f76a8a22f6c84231e5101f0950ce353ec8075.
-rw-r--r-- | man/man3/cmark.3 | 4 | ||||
-rw-r--r-- | src/cmark.h | 5 | ||||
-rw-r--r-- | src/node.c | 11 |
3 files changed, 0 insertions, 20 deletions
diff --git a/man/man3/cmark.3 b/man/man3/cmark.3 index e12e5ee..efce745 100644 --- a/man/man3/cmark.3 +++ b/man/man3/cmark.3 @@ -135,10 +135,6 @@ typedef enum { .PP -\fIint\fR \fBcmark_node_set_type\fR(\fIcmark_node *node\fR, \fIcmark_node_type node_type\fR) - -.PP - \fIconst char*\fR \fBcmark_node_get_string_content\fR(\fIcmark_node *node\fR) .PP diff --git a/src/cmark.h b/src/cmark.h index f1a6da6..f96cea9 100644 --- a/src/cmark.h +++ b/src/cmark.h @@ -137,11 +137,6 @@ cmark_node_get_type(cmark_node *node); /** */ -CMARK_EXPORT int -cmark_node_set_type(cmark_node *node, cmark_node_type node_type); - -/** - */ CMARK_EXPORT const char* cmark_node_get_string_content(cmark_node *node); @@ -84,17 +84,6 @@ cmark_node_get_type(cmark_node *node) } } -int -cmark_node_set_type(cmark_node *node, cmark_node_type node_type) -{ - if (node == NULL) { - return 0; - } else { - node->type = node_type; - return 1; - } -} - static const char* S_type_string(cmark_node *node) { |