Eliminate vestigial function to write callbacks.h.
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/e45af211 Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/e45af211 Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/e45af211 Branch: refs/heads/master Commit: e45af211522b700ae922474c716a8f1f1166fea9 Parents: c3df5a6 Author: Marvin Humphrey <[email protected]> Authored: Thu Mar 19 09:30:50 2015 -0700 Committer: Marvin Humphrey <[email protected]> Committed: Thu Mar 19 09:30:50 2015 -0700 ---------------------------------------------------------------------- compiler/c/cfc.c | 1 - compiler/go/cfc/cfc.go | 4 ---- compiler/src/CFCC.c | 7 ------- compiler/src/CFCC.h | 5 ----- runtime/go/build.go | 1 - 5 files changed, 18 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/e45af211/compiler/c/cfc.c ---------------------------------------------------------------------- diff --git a/compiler/c/cfc.c b/compiler/c/cfc.c index 83dc5ed..9e36a5a 100644 --- a/compiler/c/cfc.c +++ b/compiler/c/cfc.c @@ -243,7 +243,6 @@ main(int argc, char **argv) { c_binding = CFCC_new(hierarchy, header, footer); CFCC_write_hostdefs(c_binding); if (args.num_source_dirs != 0) { - CFCC_write_callbacks(c_binding); CFCC_write_html_docs(c_binding); CFCC_write_man_pages(c_binding); } http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/e45af211/compiler/go/cfc/cfc.go ---------------------------------------------------------------------- diff --git a/compiler/go/cfc/cfc.go b/compiler/go/cfc/cfc.go index 7c12a6c..2944de5 100644 --- a/compiler/go/cfc/cfc.go +++ b/compiler/go/cfc/cfc.go @@ -152,10 +152,6 @@ func (obj *BindC) finalize() { C.CFCBase_decref((*C.CFCBase)(unsafe.Pointer(obj.ref))) } -func (obj *BindC) WriteCallbacks() { - C.CFCC_write_callbacks(obj.ref) -} - func (obj *BindC) WriteHostDefs() { C.CFCC_write_hostdefs(obj.ref) } http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/e45af211/compiler/src/CFCC.c ---------------------------------------------------------------------- diff --git a/compiler/src/CFCC.c b/compiler/src/CFCC.c index fbc8930..48d3128 100644 --- a/compiler/src/CFCC.c +++ b/compiler/src/CFCC.c @@ -81,13 +81,6 @@ CFCC_destroy(CFCC *self) { CFCBase_destroy((CFCBase*)self); } -/* Write "callbacks.h" with NULL callbacks. - */ -void -CFCC_write_callbacks(CFCC *self) { - return; -} - static char* S_callback_decs(CFCClass *klass) { CFCMethod **fresh_methods = CFCClass_fresh_methods(klass); http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/e45af211/compiler/src/CFCC.h ---------------------------------------------------------------------- diff --git a/compiler/src/CFCC.h b/compiler/src/CFCC.h index 093b043..b8c6c73 100644 --- a/compiler/src/CFCC.h +++ b/compiler/src/CFCC.h @@ -46,11 +46,6 @@ CFCC_init(CFCC *self, struct CFCHierarchy *hierarchy, const char *header, void CFCC_destroy(CFCC *self); -/** Write the "callbacks.h" header file with dummy callbacks. - */ -void -CFCC_write_callbacks(CFCC *self); - /** Write the "cfish_hostdefs.h" header file. */ void http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/e45af211/runtime/go/build.go ---------------------------------------------------------------------- diff --git a/runtime/go/build.go b/runtime/go/build.go index 8411504..51f4662 100644 --- a/runtime/go/build.go +++ b/runtime/go/build.go @@ -122,7 +122,6 @@ func runCFC() { modified := coreBinding.WriteAllModified(false) if modified { cBinding := cfc.NewBindC(hierarchy, autogenHeader, "") - cBinding.WriteCallbacks() cBinding.WriteHostDefs() hierarchy.WriteLog() }
