diff --git a/src/core.c b/src/core.c index a1dd5bfba..ea3d1175b 100644 --- a/src/core.c +++ b/src/core.c @@ -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) { diff --git a/src/init.c b/src/init.c index 6cefd917c..659bf40b9 100644 --- a/src/init.c +++ b/src/init.c @@ -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}, @@ -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); } diff --git a/src/nanonext.h b/src/nanonext.h index 6277a3868..0215326ab 100644 --- a/src/nanonext.h +++ b/src/nanonext.h @@ -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);