Remove C API documentation for Destroy method Destroy must never be called directly. If we document this method, novice users might think it should be called to free resources.
Fixes CLOWNFISH-94. Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/68000626 Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/68000626 Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/68000626 Branch: refs/heads/0.5 Commit: 68000626779e9b99982463f8b62cb24b295b2c1e Parents: 53baf6a Author: Nick Wellnhofer <[email protected]> Authored: Sat Apr 23 18:34:45 2016 +0200 Committer: Nick Wellnhofer <[email protected]> Committed: Sat Apr 23 18:54:18 2016 +0200 ---------------------------------------------------------------------- compiler/src/CFCCHtml.c | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/68000626/compiler/src/CFCCHtml.c ---------------------------------------------------------------------- diff --git a/compiler/src/CFCCHtml.c b/compiler/src/CFCCHtml.c index 40ef303..67e334d 100644 --- a/compiler/src/CFCCHtml.c +++ b/compiler/src/CFCCHtml.c @@ -758,6 +758,11 @@ S_html_create_fresh_methods(CFCClass *klass, CFCClass *ancestor) { } const char *name = CFCMethod_get_name(method); + if (strcmp(name, "Destroy") == 0) { + // Destroy must not be called directly. + continue; + } + CFCMethod *other = CFCClass_method(klass, name); if (!CFCMethod_is_fresh(other, ancestor)) { // The method is implementated in a subclass and already
