Skip to content

Commit

Permalink
removes internal debug function
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Nov 18, 2023
1 parent 218faa2 commit 848fd95
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions src/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1415,13 +1415,7 @@ SEXP rnng_weakref_value(SEXP w) {

}

// misc ------------------------------------------------------------------------

void rnng_fini(void) {

nng_fini();

}
// next mode selector ----------------------------------------------------------

SEXP rnng_next_mode(SEXP refhook, SEXP mark) {

Expand Down
7 changes: 1 addition & 6 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,6 @@ static void ReleaseObjects(void) {
R_ReleaseObject(nano_aioFormals);
}

static const R_CMethodDef cMethods[] = {
{"rnng_fini", (DL_FUNC) &rnng_fini, 0},
{NULL, NULL, 0, NULL}
};

static const R_CallMethodDef callMethods[] = {
{"rnng_aio_call", (DL_FUNC) &rnng_aio_call, 1},
{"rnng_aio_get_msg", (DL_FUNC) &rnng_aio_get_msg, 1},
Expand Down Expand Up @@ -230,7 +225,7 @@ void attribute_visible R_init_nanonext(DllInfo* dll) {
#if NNG_MAJOR_VERSION == 1 && NNG_MINOR_VERSION < 6
nng_mtx_alloc(&shr_mtx);
#endif
R_registerRoutines(dll, cMethods, callMethods, NULL, externalMethods);
R_registerRoutines(dll, NULL, callMethods, NULL, externalMethods);
R_useDynamicSymbols(dll, FALSE);
R_forceSymbols(dll, TRUE);
}
Expand Down
1 change: 0 additions & 1 deletion src/nanonext.h
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ extern SEXP rnng_cv_wait(SEXP);
extern SEXP rnng_dial(SEXP, SEXP, SEXP, SEXP, SEXP);
extern SEXP rnng_dialer_close(SEXP);
extern SEXP rnng_dialer_start(SEXP, SEXP);
extern void rnng_fini(void);
extern SEXP rnng_get_opt(SEXP, SEXP);
extern SEXP rnng_is_error_value(SEXP);
extern SEXP rnng_is_nul_byte(SEXP);
Expand Down

0 comments on commit 848fd95

Please sign in to comment.